Class: ErrorCounter
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Instance Method Summary collapse
- #increment! ⇒ Object
-
#initialize ⇒ ErrorCounter
constructor
A new instance of ErrorCounter.
Constructor Details
#initialize ⇒ ErrorCounter
Returns a new instance of ErrorCounter.
23 24 25 |
# File 'lib/ompload.rb', line 23 def initialize @count = 0 end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
21 22 23 |
# File 'lib/ompload.rb', line 21 def count @count end |
Instance Method Details
#increment! ⇒ Object
27 28 29 |
# File 'lib/ompload.rb', line 27 def increment! @count += 1 end |