Exception: ENVied::Configurable::VariableError

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

Direct Known Subclasses

VariableMissingError, VariableTypeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variable) ⇒ VariableError

Returns a new instance of VariableError.



8
9
10
# File 'lib/envied.rb', line 8

def initialize(variable)
  @variable = variable
end

Instance Attribute Details

#variableObject (readonly)

Returns the value of attribute variable.



7
8
9
# File 'lib/envied.rb', line 7

def variable
  @variable
end

Instance Method Details

#variable_typeObject



12
13
14
# File 'lib/envied.rb', line 12

def variable_type
  variable.type.to_s.split("::").last
end