Class: HelloCheckboxGroup::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePerson

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

#activitiesObject

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_optionsObject



33
34
35
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 33

def activities_options
  ['Skiing', 'Snowboarding', 'Snowmobiling', 'Snowshoeing']
end

#reset_activitiesObject



37
38
39
# File 'lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb', line 37

def reset_activities
  self.activities = ['Snowboarding']
end