Class: RBS::Dynamic::CLI
- Inherits:
-
Thor
- Object
- Thor
- RBS::Dynamic::CLI
- Defined in:
- lib/rbs/dynamic/cli.rb
Instance Method Summary collapse
Instance Method Details
#trace(filename) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rbs/dynamic/cli.rb', line 26 def trace(filename) decls = RBS::Dynamic.trace(**) { load filename }.values stdout = StringIO.new writer = RBS::Writer.new(out: stdout) writer.write(decls) puts "# RBS dynamic trace #{RBS::Dynamic::VERSION}" puts puts stdout.string end |