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-5.1.1 lib/ruby2js/converter/undef.rb
ruby2js-5.1.0 lib/ruby2js/converter/undef.rb
ruby2js-5.0.1 lib/ruby2js/converter/undef.rb
ruby2js-5.0.0 lib/ruby2js/converter/undef.rb
ruby2js-4.2.2 lib/ruby2js/converter/undef.rb
ruby2js-4.2.1 lib/ruby2js/converter/undef.rb
ruby2js-4.2.0 lib/ruby2js/converter/undef.rb
ruby2js-4.1.7 lib/ruby2js/converter/undef.rb
ruby2js-4.1.6 lib/ruby2js/converter/undef.rb
ruby2js-4.1.5 lib/ruby2js/converter/undef.rb
ruby2js-4.1.4 lib/ruby2js/converter/undef.rb
ruby2js-4.1.3 lib/ruby2js/converter/undef.rb
ruby2js-4.1.2 lib/ruby2js/converter/undef.rb
ruby2js-4.1.1 lib/ruby2js/converter/undef.rb
ruby2js-4.1.0 lib/ruby2js/converter/undef.rb
ruby2js-4.0.5 lib/ruby2js/converter/undef.rb
ruby2js-4.0.4 lib/ruby2js/converter/undef.rb
ruby2js-4.0.3 lib/ruby2js/converter/undef.rb
ruby2js-4.0.2 lib/ruby2js/converter/undef.rb
ruby2js-4.0.1 lib/ruby2js/converter/undef.rb