Exception: Bobot::FieldFormat

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/bobot/exceptions.rb

Instance Method Summary collapse

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