Module: SmartChart::Encoder

Defined in:
lib/smart_chart/encoder.rb

Defined Under Namespace

Classes: Base, Extended, Simple, Text

Class Method Summary collapse

Class Method Details

.encode(data, min = nil, max = nil) ⇒ Object

Choose the best encoder, instantiate, and return.



7
8
9
# File 'lib/smart_chart/encoder.rb', line 7

def self.encode(data, min = nil, max = nil)
  Simple.new(data, min, max)
end