Exception: FieldNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- FieldNotFound
- Defined in:
- lib/validation_profiler/rules/rules.rb
Instance Method Summary collapse
-
#initialize(field) ⇒ FieldNotFound
constructor
A new instance of FieldNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(field) ⇒ FieldNotFound
Returns a new instance of FieldNotFound.
19 20 21 |
# File 'lib/validation_profiler/rules/rules.rb', line 19 def initialize(field) @field = field end |
Instance Method Details
#to_s ⇒ Object
23 24 25 26 |
# File 'lib/validation_profiler/rules/rules.rb', line 23 def to_s field = @field "Field: #{field} could not be found." end |