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.
29 30 31 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 29 def initialize reset! end |
Instance Attribute Details
#age_group ⇒ Object
Returns the value of attribute age_group.
27 28 29 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 27 def age_group @age_group end |
#gender ⇒ Object
Returns the value of attribute gender.
27 28 29 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 27 def gender @gender end |
Instance Method Details
#age_group_options ⇒ Object
37 38 39 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 37 def ['Child', 'Teen', 'Adult', 'Senior'] end |
#gender_options ⇒ Object
33 34 35 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 33 def ['Male', 'Female'] end |
#reset! ⇒ Object
41 42 43 44 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb', line 41 def reset! self.gender = nil self.age_group = 'Adult' end |