Exception: Measured::MissingConversionPath
- Defined in:
- lib/measured/missing_conversion_path.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to) ⇒ MissingConversionPath
constructor
A new instance of MissingConversionPath.
Constructor Details
#initialize(from, to) ⇒ MissingConversionPath
Returns a new instance of MissingConversionPath.
6 7 8 9 10 |
# File 'lib/measured/missing_conversion_path.rb', line 6 def initialize(from, to) super("Cannot find conversion path from #{from} to #{to}.") @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
4 5 6 |
# File 'lib/measured/missing_conversion_path.rb', line 4 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
4 5 6 |
# File 'lib/measured/missing_conversion_path.rb', line 4 def to @to end |