Class: UnboundMethod

Inherits:
Object show all
Defined in:
lib/utilrb/unbound_method/call.rb

Instance Method Summary collapse

Instance Method Details

#call(obj, *args, &block) ⇒ Object

Calls this method on obj with the args and block arguments. This allows to have an uniform way to call methods on objects



4
5
6
# File 'lib/utilrb/unbound_method/call.rb', line 4

def call(obj, *args, &block)
	bind(obj).call(*args, &block)
end