Class: HelloCCombo::Person

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePerson

Returns a new instance of Person.



27
28
29
30
# File 'lib/glimmer-dsl-opal/samples/hello/hello_c_combo.rb', line 27

def initialize
  self.country_options = ['', 'Canada', 'US', 'Mexico']
  reset_country!
end

Instance Attribute Details

#countryObject

Returns the value of attribute country.



25
26
27
# File 'lib/glimmer-dsl-opal/samples/hello/hello_c_combo.rb', line 25

def country
  @country
end

#country_optionsObject

Returns the value of attribute country_options.



25
26
27
# File 'lib/glimmer-dsl-opal/samples/hello/hello_c_combo.rb', line 25

def country_options
  @country_options
end

Instance Method Details

#reset_country!Object



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

def reset_country!
  self.country = 'Canada'
end