Class: Presentation::Base
- Inherits:
-
Object
- Object
- Presentation::Base
- Includes:
- Presenting::Configurable
- Defined in:
- lib/presentation/base.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
-
#presentable ⇒ Object
Returns the value of attribute presentable.
Instance Method Summary collapse
Methods included from Presenting::Configurable
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
11 12 13 |
# File 'lib/presentation/base.rb', line 11 def controller @controller end |
#presentable ⇒ Object
Returns the value of attribute presentable.
9 10 11 |
# File 'lib/presentation/base.rb', line 9 def presentable @presentable end |
Instance Method Details
#render ⇒ Object
5 6 7 |
# File 'lib/presentation/base.rb', line 5 def render view.render :partial => "presentations/#{self.class.to_s.split('::').last.underscore}" end |