Exception: Less2Sass::InvalidArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/less2sass/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(arg, val) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



15
16
17
18
# File 'lib/less2sass/error.rb', line 15

def initialize(arg, val)
  @arg = arg
  @val = val
end

Instance Method Details

#messageObject



20
21
22
# File 'lib/less2sass/error.rb', line 20

def message
  "#{@val} is not a valid value for #{arg}"
end