Module: Gruff::Line::DotRenderers

Defined in:
lib/gruff/line.rb

Defined Under Namespace

Classes: Circle, Square

Class Method Summary collapse

Class Method Details

.renderer(style) ⇒ Object



357
358
359
360
361
362
363
# File 'lib/gruff/line.rb', line 357

def self.renderer(style)
  if style.to_s == 'square'
    Square.new
  else
    Circle.new
  end
end