method
new
v4.2.7 -
Show latest stable
- Class:
ActionView::Template::HTML
new(string, type = nil)public
No documentation available.
# File actionview/lib/action_view/template/html.rb, line 7
def initialize(string, type = nil)
@string = string.to_s
@type = Types[type] || type if type
@type ||= Types[:html]
end