method
new
v6.0.0 -
Show latest stable
- Class:
ActionView::Template::HTML
new(string, type = nil)public
No documentation available.
# File actionview/lib/action_view/template/html.rb, line 11
def initialize(string, type = nil)
unless type
ActiveSupport::Deprecation.warn "ActionView::Template::HTML#initialize requires a type parameter"
type = :html
end
@string = string.to_s
@type = type
end