Class: Hamlit::HTML
- Defined in:
- lib/hamlit/html.rb
Constant Summary collapse
- DEPRECATED_FORMATS =
%i[html4 html5].freeze
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ HTML
constructor
A new instance of HTML.
Constructor Details
#initialize(opts = {}) ⇒ HTML
Returns a new instance of HTML.
6 7 8 9 10 11 12 |
# File 'lib/hamlit/html.rb', line 6 def initialize(opts = {}) if DEPRECATED_FORMATS.include?(opts[:format]) opts = opts.dup opts[:format] = :html end super(opts) end |