Class: NumberHolder
- Inherits:
-
Object
- Object
- NumberHolder
- Defined in:
- lib/glimmer-dsl-web/samples/hello/hello_observer.rb,
lib/glimmer-dsl-web/samples/hello/hello_observer_data_binding.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize ⇒ NumberHolder
constructor
A new instance of NumberHolder.
Constructor Details
#initialize ⇒ NumberHolder
Returns a new instance of NumberHolder.
27 28 29 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_observer.rb', line 27 def initialize self.number = 50 end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
25 26 27 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_observer.rb', line 25 def number @number end |