Class: Early::RequiredVariable
- Inherits:
-
Object
- Object
- Early::RequiredVariable
- Defined in:
- lib/early.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(name) ⇒ RequiredVariable
constructor
A new instance of RequiredVariable.
Constructor Details
#initialize(name) ⇒ RequiredVariable
Returns a new instance of RequiredVariable.
56 57 58 |
# File 'lib/early.rb', line 56 def initialize(name) @name = String(name) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
54 55 56 |
# File 'lib/early.rb', line 54 def name @name end |
Instance Method Details
#apply ⇒ Object
60 61 62 |
# File 'lib/early.rb', line 60 def apply ENV.fetch(name) { raise Error, self } end |