Class: NumberHolder

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeNumberHolder

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

#numberObject

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