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
:nodoc:.
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
:nodoc:
7 8 9 |
# File 'lib/action_view/template/text.rb', line 7 def type @type end |
Instance Method Details
#formats ⇒ Object
28 29 30 |
# File 'lib/action_view/template/text.rb', line 28 def formats [@type.ref] end |
#identifier ⇒ Object Also known as: inspect
14 15 16 |
# File 'lib/action_view/template/text.rb', line 14 def identifier "text template" end |
#render(*args) ⇒ Object
24 25 26 |
# File 'lib/action_view/template/text.rb', line 24 def render(*args) to_str end |
#to_str ⇒ Object
20 21 22 |
# File 'lib/action_view/template/text.rb', line 20 def to_str @string end |