Exception: Early::Error
- Inherits:
-
KeyError
- Object
- KeyError
- Early::Error
- Defined in:
- lib/early.rb
Overview
Error is raised when an environment variable is missing.
Instance Attribute Summary collapse
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Instance Method Summary collapse
-
#initialize(variable) ⇒ Error
constructor
A new instance of Error.
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
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
67 68 69 |
# File 'lib/early.rb', line 67 def variable @variable end |