Class: HelloGroup::Person
- Inherits:
-
Object
- Object
- HelloGroup::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_group.rb
Instance Attribute Summary collapse
-
#adult ⇒ Object
Returns the value of attribute adult.
-
#child ⇒ Object
Returns the value of attribute child.
-
#female ⇒ Object
Returns the value of attribute female.
-
#male ⇒ Object
Returns the value of attribute male.
-
#senior ⇒ Object
Returns the value of attribute senior.
-
#teen ⇒ Object
Returns the value of attribute teen.
Instance Method Summary collapse
-
#initialize ⇒ Person
constructor
A new instance of Person.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Person
Returns a new instance of Person.
26 27 28 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 26 def initialize reset end |
Instance Attribute Details
#adult ⇒ Object
Returns the value of attribute adult.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def adult @adult end |
#child ⇒ Object
Returns the value of attribute child.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def child @child end |
#female ⇒ Object
Returns the value of attribute female.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def female @female end |
#male ⇒ Object
Returns the value of attribute male.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def male @male end |
#senior ⇒ Object
Returns the value of attribute senior.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def senior @senior end |
#teen ⇒ Object
Returns the value of attribute teen.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 24 def teen @teen end |
Instance Method Details
#reset ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_group.rb', line 30 def reset self.male = nil self.female = nil self.child = nil self.teen = nil self.adult = true self.senior = nil end |