Exception: RSS::UnknownConversionMethodError
- Defined in:
- lib/rss/rss.rb
Overview
Raised when an unknown conversion error occurs.
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(to, from) ⇒ UnknownConversionMethodError
constructor
A new instance of UnknownConversionMethodError.
Constructor Details
#initialize(to, from) ⇒ UnknownConversionMethodError
Returns a new instance of UnknownConversionMethodError.
166 167 168 169 170 |
# File 'lib/rss/rss.rb', line 166 def initialize(to, from) @to = to @from = from super("can't convert to #{to} from #{from}.") end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
165 166 167 |
# File 'lib/rss/rss.rb', line 165 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
165 166 167 |
# File 'lib/rss/rss.rb', line 165 def to @to end |