Module: HTOTConv::Generator
- Defined in:
- lib/htot_conv/generator.rb,
lib/htot_conv/generator/base.rb,
lib/htot_conv/generator/xlsx_type0.rb,
lib/htot_conv/generator/xlsx_type1.rb,
lib/htot_conv/generator/xlsx_type2.rb,
lib/htot_conv/generator/xlsx_type4.rb,
lib/htot_conv/generator/xlsx_type5.rb
Defined Under Namespace
Classes: Base, XlsxBase, XlsxType0, XlsxType1, XlsxType2, XlsxType4, XlsxType5
Class Method Summary
collapse
Class Method Details
.create(type, *args) ⇒ Object
11
12
13
14
|
# File 'lib/htot_conv/generator.rb', line 11
def create(type, *args)
klass = HTOTConv::Generator.const_get(Rinne.camelize(type.to_s))
klass.new(*args)
end
|
.types ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'lib/htot_conv/generator.rb', line 17
def types
HTOTConv::Generator.constants.reject { |klass|
klass =~ /Base$/
}.select { |klass|
HTOTConv::Generator.const_get(klass).kind_of?(Class)
}.map { |klass|
Rinne.to_snake(klass.to_s).to_sym
}
end
|