Module: Hamlit::Concerns::Deprecation
- Included in:
- HTML
- Defined in:
- lib/hamlit/concerns/deprecation.rb
Constant Summary collapse
- DEPCATED_OPTIONS =
%i[html4 html5].freeze
Instance Method Summary collapse
- #initialize(opts = {}) ⇒ Object
-
#rewrite_deprecated_options(options) ⇒ Object
Temple’s warning is noisy in haml-spec.
Instance Method Details
#initialize(opts = {}) ⇒ Object
8 9 10 |
# File 'lib/hamlit/concerns/deprecation.rb', line 8 def initialize(opts = {}) super (opts) end |
#rewrite_deprecated_options(options) ⇒ Object
Temple’s warning is noisy in haml-spec.
13 14 15 16 17 |
# File 'lib/hamlit/concerns/deprecation.rb', line 13 def () = .dup [:format] = :html if DEPCATED_OPTIONS.include?([:format]) end |