Class: Leap::Whip
- Inherits:
-
Object
- Object
- Leap::Whip
- Defined in:
- lib/leap/whip.rb
Overview
Facilitates the instrumentation of Leap activity
Defined Under Namespace
Modules: Registered
Instance Method Summary collapse
-
#committee(name, &blk) ⇒ Object
Instrument Leap committee activity.
-
#decision(name, &blk) ⇒ Object
Instrument a Leap decision.
-
#quorum(name, &blk) ⇒ Object
Instrument Leap quorum activity.
Instance Method Details
#committee(name, &blk) ⇒ Object
Instrument Leap committee activity
37 38 39 |
# File 'lib/leap/whip.rb', line 37 def committee(name, &blk) Leap.log.committee instrument(&blk), name end |
#decision(name, &blk) ⇒ Object
Instrument a Leap decision
29 30 31 |
# File 'lib/leap/whip.rb', line 29 def decision(name, &blk) Leap.log.decision instrument(&blk), name end |
#quorum(name, &blk) ⇒ Object
Instrument Leap quorum activity
45 46 47 48 49 |
# File 'lib/leap/whip.rb', line 45 def quorum(name, &blk) , result = instrument(true, &blk) Leap.log.quorum , name result end |