Module: DotRenderers

Defined in:
lib/rubyplot/scripting/line/dotrender.rb

Overview

This module offers different rendering option for data points to be used with line graph. For now we have circle and square as choices.

Defined Under Namespace

Classes: Circle, Square

Class Method Summary collapse

Class Method Details

.renderer(style) ⇒ Object


21
22
23
24
25
26
27
# File 'lib/rubyplot/scripting/line/dotrender.rb', line 21

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