Exception: Scopie::InvalidTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scopie/invalid_type_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ InvalidTypeError

Returns a new instance of InvalidTypeError.



5
6
7
# File 'lib/scopie/invalid_type_error.rb', line 5

def initialize(type)
  @type = type
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/scopie/invalid_type_error.rb', line 9

def message
  "Unknown value for option 'type' provided: :#{@type}"
end