Sha256: 8da39195beaab5f3d2677442515e9f9359a51d68709ef59147e3687bbf8a43f4

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

#!/usr/bin/env ruby
require 'bato/tagatala'
require 'rubygems'

if ARGV[0].nil?
  puts <<-EOS
Hindi tinukoy ang file. Ang tamang sintaks ay:

bato file.bt
  EOS
else
  ARGV.each do |file|
    next unless file
    tagatala = Bato::Tagatala.new
    kodigo = File.read file, encoding: 'utf-8'
    ruby_kodigo = tagatala.sa_ruby kodigo
    raise 'Ang pinakamababang kinakailangan bersiyon ng Ruby ay 2.4' if
      Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
    eval ruby_kodigo
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bato-0.0.11 bin/bato