Class: Screiji::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/screiji/cli.rb

Class Method Summary collapse

Class Method Details

.reiji(file) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/screiji/cli.rb', line 7

def reiji(file)
  example = Screiji.example(file)
  case example
  when Array
  when Hash
    puts JSON.pretty_generate(example)
  else
    puts example
  end
end