Class: Early::RequiredVariable

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



54
55
56
# File 'lib/early.rb', line 54

def name
  @name
end

Instance Method Details

#applyObject



60
61
62
# File 'lib/early.rb', line 60

def apply
  ENV.fetch(name) { raise Error, self }
end