Sha256: d64e85939c0c2f98438586308b00b3d71e37ff2c464df937127431922e7f973e

Contents?: true

Size: 239 Bytes

Versions: 18

Compression:

Stored size: 239 Bytes

Contents

module Ruby2JS
  class Converter

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

    handle :undef do |*syms|
      "delete " + syms.
        map {|sym| sym.type == :sym ? sym.children.last : parse(sym)}.join(@sep)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby2js-1.15.1 lib/ruby2js/converter/undef.rb
ruby2js-1.15.0 lib/ruby2js/converter/undef.rb
ruby2js-1.14.1 lib/ruby2js/converter/undef.rb
ruby2js-1.14.0 lib/ruby2js/converter/undef.rb
ruby2js-1.13.1 lib/ruby2js/converter/undef.rb
ruby2js-1.13.0 lib/ruby2js/converter/undef.rb
ruby2js-1.12.2 lib/ruby2js/converter/undef.rb
ruby2js-1.12.1 lib/ruby2js/converter/undef.rb
ruby2js-1.12.0 lib/ruby2js/converter/undef.rb
ruby2js-1.11.1 lib/ruby2js/converter/undef.rb
ruby2js-1.11.0 lib/ruby2js/converter/undef.rb
ruby2js-1.10.0 lib/ruby2js/converter/undef.rb
ruby2js-1.9.3 lib/ruby2js/converter/undef.rb
ruby2js-1.9.2 lib/ruby2js/converter/undef.rb
ruby2js-1.9.1 lib/ruby2js/converter/undef.rb
ruby2js-1.9.0 lib/ruby2js/converter/undef.rb
ruby2js-1.8.0 lib/ruby2js/converter/undef.rb
ruby2js-1.7.0 lib/ruby2js/converter/undef.rb