Class: Proc

Inherits:
Object show all
Defined in:
lib/binder/proc.rb

Instance Method Summary collapse

Instance Method Details

#bind_to(some_object) ⇒ Object



2
3
4
5
6
# File 'lib/binder/proc.rb', line 2

def bind_to(some_object)
  Proc.new do 
    some_object.instance_eval(&self)
  end
end