Class: Metrician::Reporter
- Inherits:
-
Object
- Object
- Metrician::Reporter
show all
- Defined in:
- lib/metrician/reporter.rb
Class Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Class Attribute Details
.reporters ⇒ Object
Returns the value of attribute reporters.
12
13
14
|
# File 'lib/metrician/reporter.rb', line 12
def reporters
@reporters
end
|
Class Method Details
.all ⇒ Object
6
7
8
|
# File 'lib/metrician/reporter.rb', line 6
def self.all
reporters.select(&:enabled?).map(&:new)
end
|
.enabled? ⇒ Boolean
21
22
23
|
# File 'lib/metrician/reporter.rb', line 21
def self.enabled?
false
end
|
.inherited(subclass) ⇒ Object
16
17
18
19
|
# File 'lib/metrician/reporter.rb', line 16
def self.inherited(subclass)
@reporters ||= Set.new
@reporters << subclass
end
|
Instance Method Details
#instrument ⇒ Object
25
26
27
|
# File 'lib/metrician/reporter.rb', line 25
def instrument
nil
end
|