Class: HelloCheckbox::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer-dsl-opal/samples/hello/hello_checkbox.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_checkbox.rb', line 26

def initialize
  reset_activities!
end

Instance Attribute Details

#skiingObject

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

#snowboardingObject

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

#snowmobilingObject

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

#snowshoeingObject

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