Class: Jkf::Converter::Base
- Inherits:
-
Object
- Object
- Jkf::Converter::Base
- Defined in:
- lib/jkf/converter/base.rb
Overview
Base of Converter
Instance Method Summary collapse
-
#convert(jkf) ⇒ String
start convert.
Instance Method Details
#convert(jkf) ⇒ String
start convert
9 10 11 12 |
# File 'lib/jkf/converter/base.rb', line 9 def convert(jkf) jkf = jkf.is_a?(Hash) ? jkf : JSON.parse(jkf) convert_root(jkf) end |