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)


34
35
36
37
38
# File 'lib/pulse-meter/visualizer.rb', line 34

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