Class: Herdsman::Herd
- Inherits:
-
Object
- Object
- Herdsman::Herd
- Defined in:
- lib/herdsman/herd.rb
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Instance Method Summary collapse
- #gathered? ⇒ Boolean
-
#initialize(env, config, members) ⇒ Herd
constructor
A new instance of Herd.
Constructor Details
#initialize(env, config, members) ⇒ Herd
Returns a new instance of Herd.
4 5 6 7 8 |
# File 'lib/herdsman/herd.rb', line 4 def initialize(env, config, members) @env = env @config = config @members = members end |
Instance Attribute Details
#members ⇒ Object (readonly)
Returns the value of attribute members.
3 4 5 |
# File 'lib/herdsman/herd.rb', line 3 def members @members end |
Instance Method Details
#gathered? ⇒ Boolean
10 11 12 |
# File 'lib/herdsman/herd.rb', line 10 def gathered? members.all?(&:gathered?) end |