Class: HelloCheckbox::Person
- Inherits:
-
Object
- Object
- HelloCheckbox::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb
Instance Attribute Summary collapse
-
#skiing ⇒ Object
Returns the value of attribute skiing.
-
#snowboarding ⇒ Object
Returns the value of attribute snowboarding.
-
#snowmobiling ⇒ Object
Returns the value of attribute snowmobiling.
-
#snowshoeing ⇒ Object
Returns the value of attribute snowshoeing.
Instance Method Summary collapse
-
#initialize ⇒ Person
constructor
A new instance of Person.
- #reset_activities! ⇒ Object
Constructor Details
#initialize ⇒ Person
Returns a new instance of Person.
26 27 28 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 26 def initialize reset_activities! end |
Instance Attribute Details
#skiing ⇒ Object
Returns the value of attribute skiing.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 24 def skiing @skiing end |
#snowboarding ⇒ Object
Returns the value of attribute snowboarding.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 24 def snowboarding @snowboarding end |
#snowmobiling ⇒ Object
Returns the value of attribute snowmobiling.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 24 def snowmobiling @snowmobiling end |
#snowshoeing ⇒ Object
Returns the value of attribute snowshoeing.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 24 def snowshoeing @snowshoeing end |
Instance Method Details
#reset_activities! ⇒ Object
30 31 32 33 34 35 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb', line 30 def reset_activities! self.skiing = false self.snowboarding = true self.snowmobiling = false self.snowshoeing = false end |