Class: ActionView::Template::Text
- Inherits:
-
Object
- Object
- ActionView::Template::Text
- Defined in:
- lib/action_view/template/text.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #formats ⇒ Object
- #identifier ⇒ Object (also: #inspect)
-
#initialize(string) ⇒ Text
constructor
A new instance of Text.
- #render(*args) ⇒ Object
- #to_str ⇒ Object
Constructor Details
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/action_view/template/text.rb', line 5 def type @type end |
Instance Method Details
#formats ⇒ Object
26 27 28 |
# File 'lib/action_view/template/text.rb', line 26 def formats [@type.ref] end |
#identifier ⇒ Object Also known as: inspect
12 13 14 |
# File 'lib/action_view/template/text.rb', line 12 def identifier "text template" end |
#render(*args) ⇒ Object
22 23 24 |
# File 'lib/action_view/template/text.rb', line 22 def render(*args) to_str end |
#to_str ⇒ Object
18 19 20 |
# File 'lib/action_view/template/text.rb', line 18 def to_str @string end |