Class: HelloCombo::Person
- Inherits:
-
Object
- Object
- HelloCombo::Person
- Defined in:
- lib/glimmer-dsl-opal/samples/hello/hello_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.
26 27 28 29 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_combo.rb', line 26 def initialize self. = ['', 'Canada', 'US', 'Mexico'] reset_country! end |
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_combo.rb', line 24 def country @country end |
#country_options ⇒ Object
Returns the value of attribute country_options.
24 25 26 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_combo.rb', line 24 def @country_options end |
Instance Method Details
#reset_country! ⇒ Object
31 32 33 |
# File 'lib/glimmer-dsl-opal/samples/hello/hello_combo.rb', line 31 def reset_country! self.country = 'Canada' end |