Exception: Jade::Extensions::NotAllowed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jade/extensions.rb

Instance Method Summary collapse

Constructor Details

#initialize(gem_name) ⇒ NotAllowed

Returns a new instance of NotAllowed.



11
12
13
14
15
16
# File 'lib/jade/extensions.rb', line 11

def initialize(gem_name)
  super(
    "#{gem_name} may not extend the compiler; " \
      "allowed: #{ALLOWED.join(', ')}"
  )
end