Class: HelloRadioGroup::Person
- Inherits:
-
Object
- Object
- HelloRadioGroup::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb
Instance Attribute Summary collapse
-
#age_group ⇒ Object
Returns the value of attribute age_group.
-
#gender ⇒ Object
Returns the value of attribute gender.
Instance Method Summary collapse
- #age_group_options ⇒ Object
- #gender_options ⇒ Object
-
#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_radio_group.rb', line 26 def initialize reset end |
Instance Attribute Details
#age_group ⇒ Object
Returns the value of attribute age_group.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 24 def age_group @age_group end |
#gender ⇒ Object
Returns the value of attribute gender.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 24 def gender @gender end |
Instance Method Details
#age_group_options ⇒ Object
34 35 36 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 34 def ['Child', 'Teen', 'Adult', 'Senior'] end |
#gender_options ⇒ Object
30 31 32 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 30 def ['Male', 'Female'] end |
#reset ⇒ Object
38 39 40 41 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 38 def reset self.gender = nil self.age_group = 'Adult' end |