Sha256: d783fd626bfd5bb5dfe1038c8b3148b3059078e6c93319964e0301431cc87904

Contents?: true

Size: 253 Bytes

Versions: 11

Compression:

Stored size: 253 Bytes

Contents

module Ruby2JS
  class Converter

    # (def (self) :foo
    #   (args)
    #   (...)

    handle :defs do |target, method, args, body|
      parse s(:send, target, "#{method}=", 
        s(:block, s(:send, nil, :lambda), args, body))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby2js-1.8.0 lib/ruby2js/converter/defs.rb
ruby2js-1.7.0 lib/ruby2js/converter/defs.rb
ruby2js-1.6.0 lib/ruby2js/converter/defs.rb
ruby2js-1.5.0 lib/ruby2js/converter/defs.rb
ruby2js-1.4.0 lib/ruby2js/converter/defs.rb
ruby2js-1.3.0 lib/ruby2js/converter/defs.rb
ruby2js-1.2.0 lib/ruby2js/converter/defs.rb
ruby2js-1.1.5 lib/ruby2js/converter/defs.rb
ruby2js-1.1.4 lib/ruby2js/converter/defs.rb
ruby2js-1.1.3 lib/ruby2js/converter/defs.rb
ruby2js-1.1.2 lib/ruby2js/converter/defs.rb