Class: Gamefic::Sdk::Shell
- Inherits:
-
Thor
- Object
- Thor
- Gamefic::Sdk::Shell
- Defined in:
- lib/gamefic-sdk/shell.rb
Instance Method Summary collapse
Instance Method Details
#diagram(type) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/gamefic-sdk/shell.rb', line 32 def diagram type main = Pathname.new([:directory]).join('main.rb').realpath.to_s require_relative main plot = Gamefic::Plot.new diagram = Gamefic::Sdk::Diagram.new(plot) puts diagram.get(type).to_json end |