Class: ErrorCounter

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ompload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeErrorCounter

Returns a new instance of ErrorCounter.



23
24
25
# File 'lib/ompload.rb', line 23

def initialize
  @count = 0
end

Instance Attribute Details

#countObject (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