Module: Blabbermouth

Includes:
Canfig::Module
Defined in:
lib/blabbermouth.rb,
lib/blabbermouth/blabber.rb,
lib/blabbermouth/version.rb,
lib/blabbermouth/bystanders.rb,
lib/blabbermouth/exceptions.rb,
lib/blabbermouth/bystanders/base.rb,
lib/blabbermouth/bystanders/stdout.rb,
lib/blabbermouth/bystanders/formatter.rb,
lib/blabbermouth/bystanders/dynamic_events.rb

Defined Under Namespace

Modules: Bystanders Classes: Blabber, Count, Error, Increment, Info, Time

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.blabber(*bystanders) ⇒ Object



17
18
19
# File 'lib/blabbermouth.rb', line 17

def self.blabber(*bystanders)
  Blabbermouth::Blabber.new *bystanders
end

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



37
38
39
# File 'lib/blabbermouth.rb', line 37

def self.count(key, total, *args)
  Blabbermouth::Blabber.count key, total, *args
end

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



25
26
27
# File 'lib/blabbermouth.rb', line 25

def self.error(key, e, *args)
  Blabbermouth::Blabber.error key, e, *args
end

.flush(*args) ⇒ Object



45
46
47
# File 'lib/blabbermouth.rb', line 45

def self.flush(*args)
  Blabbermouth::Blabber.flush *args
end

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



33
34
35
# File 'lib/blabbermouth.rb', line 33

def self.increment(key, by=1, *args)
  Blabbermouth::Blabber.increment key, by, *args
end

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



29
30
31
# File 'lib/blabbermouth.rb', line 29

def self.info(key, msg=nil, *args)
  Blabbermouth::Blabber.info key, msg, *args
end

.new(*bystanders) ⇒ Object



21
22
23
# File 'lib/blabbermouth.rb', line 21

def self.new(*bystanders)
  blabber *bystanders
end

.time(key, duration = nil, *args, &block) ⇒ Object



41
42
43
# File 'lib/blabbermouth.rb', line 41

def self.time(key, duration=nil, *args, &block)
  Blabbermouth::Blabber.time key, duration, *args, &block
end