class PaletteTown::CLI
Public Instance Methods
build(file)
click to toggle source
# File lib/palettetown/cli.rb, line 7 def build file path = File.expand_path file if File.exist? path temp = Class.new PaletteTown::Scheme temp.instance_eval(IO.read(path)) if options[:out] File.open(File.expand_path(options[:out]), 'w') do |f| f.write(temp.to_s) end else puts temp.to_s end end end