ruby/wince/mkconfig_wce.rb

8 строки
167 B
Ruby

f = File.open(ARGV[0], File::WRONLY|File::APPEND)
f.write <<EOM
class Object
remove_const :RUBY_PLATFORM
RUBY_PLATFORM = Config::CONFIG[\"RUBY_PLATFORM\"]
end
EOM