Skip to content

maliabadi/outil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Outil

Installation

gem install outil

To set up a local index and config file:

outil-bootstrap

Usage

Adding methods to your Outil method index on the fly.

class MyClass
  include Outil

  outil :register
  def foo
    'bar'
  end
end

The functionality of the method isn't changed in your code.

instance = MyClass.new()
instance.foo
 => "bar" 

By including Outil and calling the "register" decorator, Outil will add the enclosed method to your universal Outil module called 'foo' that, when included in any project, will behave exactly the way it's written to here.

module SomeOtherProject
  class MyUnrelatedClass
    include Outil

    def baz
      "#{foo} baz"
    end
  end
end

another_instance = SomeOtherProject::MyUnrelatedClass.new
another_instance.foo
 => "bar" 
 another_instance.baz
 => "bar baz"

Current Status

Very early in the development stage. How exactly this might be useful is probably unclear right now, but should become clear down the line. Watch this space.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages