Exception: RSS::NotSetError
Overview
Raised when a required variable is not set.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(name, variables) ⇒ NotSetError
constructor
A new instance of NotSetError.
Constructor Details
#initialize(name, variables) ⇒ NotSetError
Returns a new instance of NotSetError.
185 186 187 188 189 |
# File 'lib/rss/rss.rb', line 185 def initialize(name, variables) @name = name @variables = variables super("required variables of #{@name} are not set: #{@variables.join(', ')}") end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
184 185 186 |
# File 'lib/rss/rss.rb', line 184 def name @name end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
184 185 186 |
# File 'lib/rss/rss.rb', line 184 def variables @variables end |