class Cri::Parser::IllegalOptionValueError

Error that will be raised when an option with an invalid or non-transformable value is encountered.

Attributes

definition[R]
value[R]

Public Class Methods

new(definition, value) click to toggle source
# File lib/cri/parser.rb, line 16
def initialize(definition, value)
  @definition = definition
  @value      = value
end

Public Instance Methods

message() click to toggle source
# File lib/cri/parser.rb, line 21
def message
  "invalid value #{value.inspect} for #{@definition.formatted_name} option"
end