Class: Blabbermouth::Bystanders::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/blabbermouth/bystanders/base.rb

Direct Known Subclasses

Stdout

Instance Method Summary collapse

Instance Method Details

#count(key, total, *args) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/blabbermouth/bystanders/base.rb', line 16

def count(key, total, *args)
  raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end

#error(key, e, *args) ⇒ Object

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/blabbermouth/bystanders/base.rb', line 4

def error(key, e, *args)
  raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end

#increment(key, by = 1, *args) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/blabbermouth/bystanders/base.rb', line 12

def increment(key, by=1, *args)
  raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end

#info(key, msg = nil, *args) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/blabbermouth/bystanders/base.rb', line 8

def info(key, msg=nil, *args)
  raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end

#time(key, duration = nil, *args) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/blabbermouth/bystanders/base.rb', line 20

def time(key, duration=nil, *args)
  raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end