Exception: SmartParams::MissingTypeAnnotationException
- Inherits:
-
StandardError
- Object
- StandardError
- SmartParams::MissingTypeAnnotationException
- Defined in:
- lib/smart_params/missing_type_annotation_exception.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:) ⇒ MissingTypeAnnotationException
constructor
A new instance of MissingTypeAnnotationException.
- #message ⇒ Object
Constructor Details
#initialize(path:) ⇒ MissingTypeAnnotationException
Returns a new instance of MissingTypeAnnotationException.
7 8 9 10 |
# File 'lib/smart_params/missing_type_annotation_exception.rb', line 7 def initialize(path:) @path = path super() end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/smart_params/missing_type_annotation_exception.rb', line 5 def path @path end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/smart_params/missing_type_annotation_exception.rb', line 12 def "/#{@path.join('/')} was expected to define a type or a block, but did neither" end |