Class: Bound::ManualCaller
- Inherits:
-
Object
- Object
- Bound::ManualCaller
- Defined in:
- lib/bound/caller.rb
Class Method Summary collapse
Class Method Details
.call(object, method, *args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/bound/caller.rb', line 9 def self.call(object, method, *args) if object.respond_to?(method) object.send method, *args else raise NoMethodError, "undefined method `#{method}' for #{object}" end end |