Module: DataSmash::Convertor::ClassMethods

Defined in:
lib/data_smash/convertor.rb

Instance Method Summary collapse

Instance Method Details

#convert(convertor, opts = {}) ⇒ Object



8
9
10
11
12
# File 'lib/data_smash/convertor.rb', line 8

def convert(convertor, opts={})
  @CONVERTORS ||= {}
  @CONVERTORS[convertor] ||= []
  @CONVERTORS[convertor] << opts
end

#convertorsObject



14
15
16
# File 'lib/data_smash/convertor.rb', line 14

def convertors
  @CONVERTORS
end