Class: Travis::Config::Serialize::Env
- Inherits:
-
Struct
- Object
- Struct
- Travis::Config::Serialize::Env
- Defined in:
- lib/travis/config/serialize/env.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(config, opts = {}) ⇒ Env
constructor
A new instance of Env.
Constructor Details
#initialize(config, opts = {}) ⇒ Env
Returns a new instance of Env.
7 8 9 10 |
# File 'lib/travis/config/serialize/env.rb', line 7 def initialize(config, opts = {}) @config = config @opts = opts end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
4 5 6 |
# File 'lib/travis/config/serialize/env.rb', line 4 def config @config end |
#opts ⇒ Object
Returns the value of attribute opts
4 5 6 |
# File 'lib/travis/config/serialize/env.rb', line 4 def opts @opts end |
Instance Method Details
#apply ⇒ Object
12 13 14 |
# File 'lib/travis/config/serialize/env.rb', line 12 def apply vars.to_a.map { |pair| pair.join('=') } end |