Class: Woyo::Attributes::Group
- Inherits:
-
Object
- Object
- Woyo::Attributes::Group
- Extended by:
- Forwardable
- Defined in:
- lib/woyo/world/group.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Instance Method Summary collapse
-
#initialize(attributes, *members) ⇒ Group
constructor
A new instance of Group.
- #names ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(attributes, *members) ⇒ Group
Returns a new instance of Group.
17 18 19 20 |
# File 'lib/woyo/world/group.rb', line 17 def initialize attributes, *members @attributes = attributes @members = members end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
15 16 17 |
# File 'lib/woyo/world/group.rb', line 15 def attributes @attributes end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
15 16 17 |
# File 'lib/woyo/world/group.rb', line 15 def members @members end |
Instance Method Details
#names ⇒ Object
22 23 24 |
# File 'lib/woyo/world/group.rb', line 22 def names @members end |
#values ⇒ Object
26 27 28 |
# File 'lib/woyo/world/group.rb', line 26 def values @attributes.values_at *@members end |