Sha256: 7f02e976c4e6c4d6eeb8fdcd8c04ad270ad049995b0e258a036c8d23536a48a7

Contents?: true

Size: 355 Bytes

Versions: 99

Compression:

Stored size: 355 Bytes

Contents

module Ruby2JS
  class Converter

    # (undef
    #   (sym :foo)
    #   (sym :bar))

    handle :undef do |*syms|
      syms.each_with_index do |sym, index|
        put @sep unless index == 0

        if sym.type == :sym
          put "delete #{sym.children.last}"
        else
          put "delete "; parse sym
        end
      end
    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
ruby2js-3.0.14 lib/ruby2js/converter/undef.rb
ruby2js-3.0.13 lib/ruby2js/converter/undef.rb
ruby2js-3.0.12 lib/ruby2js/converter/undef.rb
ruby2js-3.0.11 lib/ruby2js/converter/undef.rb
ruby2js-3.0.10 lib/ruby2js/converter/undef.rb
ruby2js-3.0.9 lib/ruby2js/converter/undef.rb
ruby2js-3.0.8 lib/ruby2js/converter/undef.rb
ruby2js-3.0.7 lib/ruby2js/converter/undef.rb
ruby2js-3.0.6 lib/ruby2js/converter/undef.rb
ruby2js-3.0.5 lib/ruby2js/converter/undef.rb
ruby2js-3.0.4 lib/ruby2js/converter/undef.rb
ruby2js-3.0.3 lib/ruby2js/converter/undef.rb
ruby2js-3.0.2 lib/ruby2js/converter/undef.rb
ruby2js-3.0.1 lib/ruby2js/converter/undef.rb
ruby2js-3.0.0 lib/ruby2js/converter/undef.rb
ruby2js-2.1.24 lib/ruby2js/converter/undef.rb
ruby2js-2.1.23 lib/ruby2js/converter/undef.rb
ruby2js-2.1.22 lib/ruby2js/converter/undef.rb
ruby2js-2.1.21 lib/ruby2js/converter/undef.rb
ruby2js-2.1.20 lib/ruby2js/converter/undef.rb