Class: Arethusa::CLI::Transformer
- Inherits:
-
Subcommand
- Object
- Thor
- Subcommand
- Arethusa::CLI::Transformer
- Defined in:
- lib/arethusa/cli/transformer.rb
Instance Method Summary collapse
Methods inherited from Subcommand
Instance Method Details
#relations(file) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/arethusa/cli/transformer.rb', line 9 def relations(file) @doc = Nokogiri::XML(open(file)) @conf = Relations.new parse('relation', :add_label) parse('subrelation', :add_suffix) puts JSON.pretty_generate(@conf, indent: ' ') end |