Class: Counter
- Inherits:
-
Object
- Object
- Counter
- Defined in:
- lib/glimmer-dsl-web/samples/regular/button_counter.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
Instance Method Summary collapse
-
#initialize ⇒ Counter
constructor
A new instance of Counter.
Constructor Details
#initialize ⇒ Counter
Returns a new instance of Counter.
6 7 8 |
# File 'lib/glimmer-dsl-web/samples/regular/button_counter.rb', line 6 def initialize self.count = 0 end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
4 5 6 |
# File 'lib/glimmer-dsl-web/samples/regular/button_counter.rb', line 4 def count @count end |