Exception: Scopie::InvalidTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- Scopie::InvalidTypeError
- Defined in:
- lib/scopie/invalid_type_error.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ InvalidTypeError
constructor
A new instance of InvalidTypeError.
- #message ⇒ Object
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
#message ⇒ Object
9 10 11 |
# File 'lib/scopie/invalid_type_error.rb', line 9 def "Unknown value for option 'type' provided: :#{@type}" end |