Class: ActionView::InlineTemplate
- Includes:
- Renderable
- Defined in:
- lib/action_view/inline_template.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#extension ⇒ Object
readonly
Returns the value of attribute extension.
-
#method_segment ⇒ Object
readonly
Returns the value of attribute method_segment.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, type = nil) ⇒ InlineTemplate
constructor
A new instance of InlineTemplate.
Methods included from Renderable
#compiled_source, #filename, #handler, #method_name, #method_name_without_locals, #render, #render_without_template_tracking
Constructor Details
#initialize(source, type = nil) ⇒ InlineTemplate
Returns a new instance of InlineTemplate.
7 8 9 10 11 |
# File 'lib/action_view/inline_template.rb', line 7 def initialize(source, type = nil) @source = source @extension = type @method_segment = "inline_#{@source.hash.abs}" end |
Instance Attribute Details
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
5 6 7 |
# File 'lib/action_view/inline_template.rb', line 5 def extension @extension end |
#method_segment ⇒ Object (readonly)
Returns the value of attribute method_segment.
5 6 7 |
# File 'lib/action_view/inline_template.rb', line 5 def method_segment @method_segment end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/action_view/inline_template.rb', line 5 def source @source end |