Method: Nosey::Munin::Graph#initialize

Defined in:
lib/nosey/munin.rb

#initialize(data = nil) {|_self| ... } ⇒ Graph

Returns a new instance of Graph.

Yields:

  • (_self)

Yield Parameters:



30
31
32
33
34
35
# File 'lib/nosey/munin.rb', line 30

def initialize(data=nil)
  @data = data
  @category = 'App' # Default it to app duuude
  yield self if block_given?
  self
end