Exception: RSS::ConversionError
Overview
Raised when a conversion failure occurs.
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(string, to, from) ⇒ ConversionError
constructor
A new instance of ConversionError.
Constructor Details
#initialize(string, to, from) ⇒ ConversionError
Returns a new instance of ConversionError.
178 179 180 181 182 183 |
# File 'lib/rss/rss.rb', line 178 def initialize(string, to, from) @string = string @to = to @from = from super("can't convert #{@string} to #{to} from #{from}.") end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
177 178 179 |
# File 'lib/rss/rss.rb', line 177 def from @from end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
177 178 179 |
# File 'lib/rss/rss.rb', line 177 def string @string end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
177 178 179 |
# File 'lib/rss/rss.rb', line 177 def to @to end |