Class: PulseMeter::Visualizer

Inherits:
Object
  • Object
show all
Defined in:
lib/pulse_meter/visualizer.rb

Class Method Summary collapse

Class Method Details

.draw {|layout_cofigurator| ... } ⇒ Object

Yields:

  • (layout_cofigurator)


32
33
34
35
36
# File 'lib/pulse_meter/visualizer.rb', line 32

def self.draw(&block)
  layout_cofigurator = PulseMeter::Visualize::DSL::Layout.new
  yield(layout_cofigurator)
  layout_cofigurator.to_data
end