Exception: Chrono::Fields::Base::InvalidField
- Inherits:
-
StandardError
- Object
- StandardError
- Chrono::Fields::Base::InvalidField
- Defined in:
- lib/chrono/fields/base.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(message, source) ⇒ InvalidField
constructor
A new instance of InvalidField.
Constructor Details
#initialize(message, source) ⇒ InvalidField
Returns a new instance of InvalidField.
7 8 9 10 |
# File 'lib/chrono/fields/base.rb', line 7 def initialize(, source) super("#{}: #{source}") @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/chrono/fields/base.rb', line 5 def source @source end |