Module: DR::CoreExt::UnboundMethod
- Defined in:
- lib/drain/ruby_ext/core_ext.rb
Instance Method Summary collapse
- #call(*args, &b) ⇒ Object
-
#to_proc ⇒ Object
this should be in the stdlib...
Instance Method Details
#call(*args, &b) ⇒ Object
131 132 133 |
# File 'lib/drain/ruby_ext/core_ext.rb', line 131 def call(*args,&b) self.to_proc.call(*args,&b) end |
#to_proc ⇒ Object
this should be in the stdlib...
126 127 128 129 130 |
# File 'lib/drain/ruby_ext/core_ext.rb', line 126 def to_proc return lambda do |obj,*args,&b| self.bind(obj).call(*args,&b) end end |