Exception: Dommy::Internal::CSS::Parser::Unavailable

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dommy/internal/css/parser.rb

Overview

Raised when CSS features are used without the makiri gem.

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ Unavailable

Returns a new instance of Unavailable.



73
74
75
76
77
# File 'lib/dommy/internal/css/parser.rb', line 73

def initialize(msg = nil)
  super(msg || "Dommy's CSS support requires the 'makiri' gem (its bundled " \
               "lexbor provides the CSS parser). Add `gem \"makiri\"` to use " \
               "stylesheet-aware computed styles.")
end