Class: Travis::Config::Env::Vars

Inherits:
Struct
  • Object
show all
Defined in:
lib/travis/config/env.rb

Constant Summary collapse

TRUE =
/^(true|yes|on)$/
FALSE =
/^(false|no|off)$/

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#defaultsObject

Returns the value of attribute defaults

Returns:

  • (Object)

    the current value of defaults



12
13
14
# File 'lib/travis/config/env.rb', line 12

def defaults
  @defaults
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



12
13
14
# File 'lib/travis/config/env.rb', line 12

def prefix
  @prefix
end

Instance Method Details

#to_hObject



16
17
18
# File 'lib/travis/config/env.rb', line 16

def to_h
  hash(ENV, prefix.dup, defaults)
end