Module: DataBroker::ValueObject::InstanceMethods
- Defined in:
- lib/data_broker/value_object.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/data_broker/value_object.rb', line 23
def method_missing(method, *args, &block)
if method == :type
self.class.to_s
else
super
end
end
|
Instance Method Details
#respond_to_missing?(method, include_private = false) ⇒ Boolean
31
32
33
|
# File 'lib/data_broker/value_object.rb', line 31
def respond_to_missing?(method, include_private = false)
method == :type || super
end
|