Exception: Bobot::FieldFormat
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Bobot::FieldFormat
- Defined in:
- lib/bobot/exceptions.rb
Instance Method Summary collapse
-
#initialize(description, value = nil) ⇒ FieldFormat
constructor
A new instance of FieldFormat.
Constructor Details
#initialize(description, value = nil) ⇒ FieldFormat
Returns a new instance of FieldFormat.
6 7 8 |
# File 'lib/bobot/exceptions.rb', line 6 def initialize(description, value = nil) super("#{description}#{value.present? ? " : #{value}'" : ''}") end |