Sha256: 01e7542c65d6b3bfddb4c53ec67ea9206919ef00a945853cdb6d8c77c3529d81
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
require_relative "pyrite/version" require_relative "pyrite/parser" require_relative "pyrite/transformer" require_relative "pyrite/cli" module Swift module Pyrite def self.generate_fake_for(file_path, output_path) code = File.read(file_path) parser = Parser.new ast = parser.parse(code) transformer = Transformer.new(ast) File.open(output_path, 'w+') do |f| f.write(transformer.generate) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swift-pyrite-0.1.1 | lib/swift/pyrite.rb |
swift-pyrite-0.1.0 | lib/swift/pyrite.rb |