Exception: RSS::NotSetError

Inherits:
Error
  • Object
show all
Defined in:
lib/rss/rss.rb

Overview

Raised when a required variable is not set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, variables) ⇒ NotSetError

Returns a new instance of NotSetError.



189
190
191
192
193
# File 'lib/rss/rss.rb', line 189

def initialize(name, variables)
  @name = name
  @variables = variables
  super("required variables of #{@name} are not set: #{@variables.join(', ')}")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



188
189
190
# File 'lib/rss/rss.rb', line 188

def name
  @name
end

#variablesObject (readonly)

Returns the value of attribute variables.



188
189
190
# File 'lib/rss/rss.rb', line 188

def variables
  @variables
end