Class: Rjax::Resolver
- Inherits:
-
Struct
- Object
- Struct
- Rjax::Resolver
- Defined in:
- lib/rjax/resolver.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller
3 4 5 |
# File 'lib/rjax/resolver.rb', line 3 def controller @controller end |
#options ⇒ Object
Returns the value of attribute options
3 4 5 |
# File 'lib/rjax/resolver.rb', line 3 def end |
Class Method Details
.process(*args) ⇒ Object
4 5 6 |
# File 'lib/rjax/resolver.rb', line 4 def self.process(*args) new(*args).process end |
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/rjax/resolver.rb', line 8 def process case when Hash then general_partial when Array then collection_partial when NilClass then template_name else instance_partial end end |