Class: Perkins::Build::Data::Env::Group
- Defined in:
- lib/perkins/build/data/env.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
-
#vars ⇒ Object
Returns the value of attribute vars.
Instance Method Summary collapse
- #announce? ⇒ Boolean
-
#initialize(source, vars) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(source, vars) ⇒ Group
Returns a new instance of Group.
11 12 13 |
# File 'lib/perkins/build/data/env.rb', line 11 def initialize(source, vars) super(source, vars || []) end |
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source
10 11 12 |
# File 'lib/perkins/build/data/env.rb', line 10 def source @source end |
#vars ⇒ Object
Returns the value of attribute vars
10 11 12 |
# File 'lib/perkins/build/data/env.rb', line 10 def vars @vars end |
Instance Method Details
#announce? ⇒ Boolean
15 16 17 |
# File 'lib/perkins/build/data/env.rb', line 15 def announce? source != 'travis' && vars.length > 0 end |