Class: Htk::FDebugCounter
- Inherits:
-
Object
- Object
- Htk::FDebugCounter
- Includes:
- Singleton
- Defined in:
- lib/Htk/utils.rb
Instance Method Summary collapse
- #count ⇒ Object
- #increment ⇒ Object
-
#initialize ⇒ FDebugCounter
constructor
A new instance of FDebugCounter.
Constructor Details
#initialize ⇒ FDebugCounter
Returns a new instance of FDebugCounter.
12 13 14 |
# File 'lib/Htk/utils.rb', line 12 def initialize() @counter = 0 end |
Instance Method Details
#count ⇒ Object
20 21 22 |
# File 'lib/Htk/utils.rb', line 20 def count @counter end |
#increment ⇒ Object
16 17 18 |
# File 'lib/Htk/utils.rb', line 16 def increment @counter += 1 end |