Class: HelloCheckboxGroup::Person
- Inherits:
-
Object
- Object
- HelloCheckboxGroup::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb
Instance Attribute Summary collapse
-
#activities ⇒ Object
Returns the value of attribute activities.
Instance Method Summary collapse
- #activities_options ⇒ Object
-
#initialize ⇒ Person
constructor
A new instance of Person.
- #reset_activities ⇒ Object
Constructor Details
#initialize ⇒ Person
Returns a new instance of Person.
29 30 31 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 29 def initialize reset_activities end |
Instance Attribute Details
#activities ⇒ Object
Returns the value of attribute activities.
27 28 29 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 27 def activities @activities end |
Instance Method Details
#activities_options ⇒ Object
33 34 35 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 33 def ['Skiing', 'Snowboarding', 'Snowmobiling', 'Snowshoeing'] end |
#reset_activities ⇒ Object
37 38 39 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 37 def reset_activities self.activities = ['Snowboarding'] end |