Exception: Dentaku::UnboundVariableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dentaku/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unbound_variables) ⇒ UnboundVariableError

Returns a new instance of UnboundVariableError.



7
8
9
10
# File 'lib/dentaku/exceptions.rb', line 7

def initialize(unbound_variables)
  @unbound_variables = unbound_variables
  super("no value provided for variables: #{ unbound_variables.join(', ') }")
end

Instance Attribute Details

#recipient_variableObject

Returns the value of attribute recipient_variable.



3
4
5
# File 'lib/dentaku/exceptions.rb', line 3

def recipient_variable
  @recipient_variable
end

#unbound_variablesObject (readonly)

Returns the value of attribute unbound_variables.



5
6
7
# File 'lib/dentaku/exceptions.rb', line 5

def unbound_variables
  @unbound_variables
end