Exception: Early::Error

Inherits:
KeyError
  • Object
show all
Defined in:
lib/early.rb

Overview

Error is raised when an environment variable is missing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variable) ⇒ Error

Returns a new instance of Error.



69
70
71
72
73
# File 'lib/early.rb', line 69

def initialize(variable)
  @variable = variable

  super("Variable ENV[#{variable.name.inspect}] is missing")
end

Instance Attribute Details

#variableObject (readonly)

Returns the value of attribute variable.



67
68
69
# File 'lib/early.rb', line 67

def variable
  @variable
end