Sha256: 8fba62b2d7aeb8b7e230f688eb19a11409a2279c7ddadd4fc01b3135b7591b31

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 Bytes

Contents

require 'ruby2ruby'
require 'ruby_parser'
require 'bato/ruby_parser_patches'

module Bato
  class Tagatala
    def initialize; end

    PASIMULANG_KODIGO = "# encoding: utf-8\nrequire \"bato/core_ext\"\n".freeze

    def sa_ruby(kodigo)
      ruby2ruby = Ruby2Ruby.new
      parser = RubyParser.new
      sexp = parser.process("# encoding: utf-8\n#{kodigo}")

      ruby_kodigo = ruby2ruby.process(sexp)

      "#{PASIMULANG_KODIGO}#{ruby_kodigo}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bato-0.0.11 lib/bato/tagatala.rb
bato-0.0.10 lib/bato/tagatala.rb
bato-0.0.9 lib/bato/tagatala.rb
bato-0.0.8 lib/bato/tagatala.rb
bato-0.0.7 lib/bato/tagatala.rb
bato-0.0.6 lib/bato/tagatala.rb