Sha256: dd42c1c509c6f5ecd0775cd67c890bf14b08f27fffde8445433f1620d41429a2

Contents?: true

Size: 298 Bytes

Versions: 17

Compression:

Stored size: 298 Bytes

Contents

module Ruby2JS
  class Converter

    # (block
    #   (send nil :x)
    #   (args
    #     (arg :a))
    #   (lvar :a))

    handle :block do |call, args, block|
      block ||= s(:begin)
      function = s(:def, nil, args, block)
      parse s(:send, *call.children, function)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ruby2js-1.9.3 lib/ruby2js/converter/block.rb
ruby2js-1.9.2 lib/ruby2js/converter/block.rb
ruby2js-1.9.1 lib/ruby2js/converter/block.rb
ruby2js-1.9.0 lib/ruby2js/converter/block.rb
ruby2js-1.8.0 lib/ruby2js/converter/block.rb
ruby2js-1.7.0 lib/ruby2js/converter/block.rb
ruby2js-1.6.0 lib/ruby2js/converter/block.rb
ruby2js-1.5.0 lib/ruby2js/converter/block.rb
ruby2js-1.4.0 lib/ruby2js/converter/block.rb
ruby2js-1.3.0 lib/ruby2js/converter/block.rb
ruby2js-1.2.0 lib/ruby2js/converter/block.rb
ruby2js-1.1.5 lib/ruby2js/converter/block.rb
ruby2js-1.1.4 lib/ruby2js/converter/block.rb
ruby2js-1.1.3 lib/ruby2js/converter/block.rb
ruby2js-1.1.2 lib/ruby2js/converter/block.rb
ruby2js-1.1.1 lib/ruby2js/converter/block.rb
ruby2js-1.1.0 lib/ruby2js/converter/block.rb