Class: ActionView::Template::Renderable
- Inherits:
-
Object
- Object
- ActionView::Template::Renderable
- Defined in:
- lib/action_view/template/renderable.rb
Overview
:nodoc:
Instance Method Summary collapse
- #format ⇒ Object
- #identifier ⇒ Object
-
#initialize(renderable) ⇒ Renderable
constructor
A new instance of Renderable.
- #render(context, *args) ⇒ Object
Constructor Details
#initialize(renderable) ⇒ Renderable
Returns a new instance of Renderable.
7 8 9 |
# File 'lib/action_view/template/renderable.rb', line 7 def initialize(renderable) @renderable = renderable end |
Instance Method Details
#format ⇒ Object
19 20 21 |
# File 'lib/action_view/template/renderable.rb', line 19 def format @renderable.format end |
#identifier ⇒ Object
11 12 13 |
# File 'lib/action_view/template/renderable.rb', line 11 def identifier @renderable.class.name end |
#render(context, *args) ⇒ Object
15 16 17 |
# File 'lib/action_view/template/renderable.rb', line 15 def render(context, *args) @renderable.render_in(context) end |