Class: HelloCCombo::Person
- Inherits:
-
Object
- Object
- HelloCCombo::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_c_combo.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_options ⇒ Object
Returns the value of attribute country_options.
Instance Method Summary collapse
-
#initialize ⇒ Person
constructor
A new instance of Person.
- #reset_country! ⇒ Object
Constructor Details
#initialize ⇒ Person
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. = ['', 'Canada', 'US', 'Mexico'] reset_country! end |
Instance Attribute Details
#country ⇒ Object
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_options ⇒ Object
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 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 |