class MethodObject
See gemspec for description.
Constants
- PotentialDelegator
Represents a possible match of the form:
some_method => my_attribute.some_method
- PotentialDelegatorWithPrefix
Represents a possible match of the form:
my_attribute_some_method => my_attribute.some_method
- VERSION
Attributes
__object_factory__[RW]
Public Class Methods
attrs(*attributes)
click to toggle source
# File lib/method_object.rb, line 17 def attrs(*attributes) self.__object_factory__ = ObjectFactory.create(*attributes) end
call(**args)
click to toggle source
# File lib/method_object.rb, line 11 def call(**args) new(__object_factory__&.new(**args)).call end
Public Instance Methods
call()
click to toggle source
# File lib/method_object.rb, line 24 def call raise(NotImplementedError, 'define the call method') end