SimpleDelegate

Install

Add to your Gemfile and bundle.

gem "simple_delegate"

How to use

Add to your class and start delegating:

class MyClass
  include SimpleDelegate
  
  delegate :something, to: :another_method
  
  def another_method
    SomeModel.new
  end
end
class MyClass
  include SimpleDelegate
  
  delegate :something, to_instance_variable: :some_variable
  
  def initialize
    @some_variable = SomeModel.new
  end
end

Contributing to simple_delegate

Copyright © 2016 kaspernj. See LICENSE.txt for further details.