Class: RailsViewHelperObjects::Base
- Inherits:
-
Object
- Object
- RailsViewHelperObjects::Base
- Defined in:
- lib/rails-view-helper-objects/base.rb
Instance Attribute Summary collapse
-
#__view__ ⇒ Object
Returns the value of attribute __view__.
Class Method Summary collapse
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
11 12 13 14 |
# File 'lib/rails-view-helper-objects/base.rb', line 11 def method_missing(method, *args) return __view__.__send__(method, *args) if __view__.respond_to?(method) super end |
Instance Attribute Details
#__view__ ⇒ Object
Returns the value of attribute __view__.
5 6 7 |
# File 'lib/rails-view-helper-objects/base.rb', line 5 def __view__ @__view__ end |
Class Method Details
.inherited(subclass) ⇒ Object
7 8 9 |
# File 'lib/rails-view-helper-objects/base.rb', line 7 def self.inherited subclass subclass.__send__(:include, RailsViewHelperObjects::DefineHelperMethod) end |