Module: Gruffy::Line::DotRenderers

Defined in:
lib/gruffy/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/gruffy/line.rb', line 357

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