Class: HelloGroup::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer-dsl-opal/samples/hello/hello_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePerson

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

#adultObject

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

#childObject

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

#femaleObject

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

#maleObject

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

#seniorObject

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

#teenObject

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

#resetObject



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