Sha256: 962f31afb61ac11c50e238e71d5715ca7febe7b07541291d9ea2e6159e56cc23
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
require 'ruby2ruby' require 'ruby_parser' require 'filipinomemes/ruby_parser_patches' module Filipinomemes class Compiler def initialize; end STARTING_CODE = "# encoding: utf-8\nrequire \"filipinomemes/core_ext\"\n".freeze def zephyrum(code) ruby2ruby = Ruby2Ruby.new parser = RubyParser.new sexp = parser.process("# encoding: utf-8\n#{code}") ruby_code = ruby2ruby.process(sexp) "#{STARTING_CODE}#{ruby_code}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems