Exception: RSS::ConversionError
Instance Attribute Summary (collapse)
-
- (Object) from
readonly
Returns the value of attribute from.
-
- (Object) string
readonly
Returns the value of attribute string.
-
- (Object) to
readonly
Returns the value of attribute to.
Instance Method Summary (collapse)
-
- (ConversionError) initialize(string, to, from)
constructor
A new instance of ConversionError.
Constructor Details
- (ConversionError) initialize(string, to, from)
A new instance of ConversionError
139 140 141 142 143 144 |
# File 'lib/rss/rss.rb', line 139 def initialize(string, to, from) @string = string @to = to @from = from super("can't convert #{@string} to #{to} from #{from}.") end |
Instance Attribute Details
- (Object) from (readonly)
Returns the value of attribute from
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def from @from end |
- (Object) string (readonly)
Returns the value of attribute string
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def string @string end |
- (Object) to (readonly)
Returns the value of attribute to
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def to @to end |