Class: ActionView::Template::HTML
- Inherits:
-
Object
- Object
- ActionView::Template::HTML
- Defined in:
- lib/action_view/template/html.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#type ⇒ Object
:nodoc:.
Instance Method Summary collapse
- #formats ⇒ Object
- #identifier ⇒ Object (also: #inspect)
-
#initialize(string, type = nil) ⇒ HTML
constructor
A new instance of HTML.
- #render(*args) ⇒ Object
- #to_str ⇒ Object
Constructor Details
Instance Attribute Details
#type ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/action_view/template/html.rb', line 7 def type @type end |
Instance Method Details
#formats ⇒ Object
29 30 31 |
# File 'lib/action_view/template/html.rb', line 29 def formats [@type.respond_to?(:ref) ? @type.ref : @type.to_s] end |
#identifier ⇒ Object Also known as: inspect
15 16 17 |
# File 'lib/action_view/template/html.rb', line 15 def identifier "html template" end |
#render(*args) ⇒ Object
25 26 27 |
# File 'lib/action_view/template/html.rb', line 25 def render(*args) to_str end |
#to_str ⇒ Object
21 22 23 |
# File 'lib/action_view/template/html.rb', line 21 def to_str ERB::Util.h(@string) end |