Class: ActionView::Template::HTML
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/html.rb |
Overview
Action View HTML Template
Class Method Summary
- .new(string, type) ⇒ HTML constructor
Instance Attribute Summary
- #type readonly
Instance Method Summary
- #format
- #identifier (also: #inspect)
-
#inspect
Alias for #identifier.
- #render(*args)
- #to_str
Constructor Details
.new(string, type) ⇒ HTML
Instance Attribute Details
#type (readonly)
[ GitHub ]# File 'actionview/lib/action_view/template/html.rb', line 7
attr_reader :type
Instance Method Details
#format
[ GitHub ]# File 'actionview/lib/action_view/template/html.rb', line 28
def format @type end
#identifier Also known as: #inspect
[ GitHub ]# File 'actionview/lib/action_view/template/html.rb', line 14
def identifier "html template" end
#inspect
Alias for #identifier.
# File 'actionview/lib/action_view/template/html.rb', line 18
alias_method :inspect, :identifier
#render(*args)
[ GitHub ]# File 'actionview/lib/action_view/template/html.rb', line 24
def render(*args) to_str end
#to_str
[ GitHub ]# File 'actionview/lib/action_view/template/html.rb', line 20
def to_str ERB::Util.h(@string) end