Project

outil

0.0
No commit activity in last 3 years
No release in over 3 years
Outil is a library for storing and importing reusable code
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0.0.beta5
>= 0
 Project Readme

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.