Sha256: 2b68b845cc5f232edc24774c258e82ed447ac4286830c61a31252399712a976e
Contents?: true
Size: 546 Bytes
Versions: 8
Compression:
Stored size: 546 Bytes
Contents
#!/usr/bin/env ruby lib = File.expand_path("../../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "bundler/setup" ENV["RUBY_NEXT_EDGE"] = "1" ENV["RUBY_NEXT_PROPOSED"] = "1" require "ruby-next/language" require "ruby-next/language/rewriters/runtime" contents = if File.exist?(ARGV[0]) File.read(ARGV[0]) else ARGV[0] end opts = if ARGV[1] && ARGV[1] == "--current" {rewriters: RubyNext::Language.current_rewriters} else {} end puts RubyNext::Language.transform(contents, **opts)
Version data entries
8 entries across 8 versions & 1 rubygems