Sha256: 07edb0d224c86c3f3e1a6ab7bc500c42d17be7f5efed82c1011d7db3c9f036a0

Contents?: true

Size: 201 Bytes

Versions: 45

Compression:

Stored size: 201 Bytes

Contents

module Ruby2JS
  class Converter

    # (lvar :a)
    # (gvar :$a)

    handle :lvar, :gvar do |var|
      if var == :$!
        put '$EXCEPTION'
      else
        put var
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ruby2js-3.0.14 lib/ruby2js/converter/var.rb
ruby2js-3.0.13 lib/ruby2js/converter/var.rb
ruby2js-3.0.12 lib/ruby2js/converter/var.rb
ruby2js-3.0.11 lib/ruby2js/converter/var.rb
ruby2js-3.0.10 lib/ruby2js/converter/var.rb