module DelegateToInstance
Constants
- VERSION
Public Instance Methods
delegate_to_instance(method)
click to toggle source
# File lib/delegate_to_instance.rb, line 4 def delegate_to_instance(method) define_singleton_method(method) do |*args| new(*args).public_send(method) end end