Module: FormObject::DelegateEverything
- Defined in:
- lib/form_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
82
83
84
85
86
87
88
|
# File 'lib/form_object.rb', line 82
def method_missing(method, *args, &block)
if resource.respond_to?(method)
resource.send(method, *args, &block)
else
super
end
end
|
Instance Method Details
#respond_to_missing?(method, include_all) ⇒ Boolean
90
91
92
|
# File 'lib/form_object.rb', line 90
def respond_to_missing?(method, include_all)
resource.respond_to?(method, include_all) || super
end
|