Sha256: 4dca92d3b32e9e0f1e98cddf75baa29e408fd04d161a5ae8bafd7e16d8054516

Contents?: true

Size: 199 Bytes

Versions: 28

Compression:

Stored size: 199 Bytes

Contents

module Ruby2JS
  class Converter

    # (yield
    #   (arg 'a'))

    handle :yield do |*args|
      put '_implicitBlockYield'
      put "("; parse_all(*args, join: ', '); put ')'
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ruby2js-5.1.1 lib/ruby2js/converter/yield.rb
ruby2js-5.1.0 lib/ruby2js/converter/yield.rb
ruby2js-5.0.1 lib/ruby2js/converter/yield.rb
ruby2js-5.0.0 lib/ruby2js/converter/yield.rb
ruby2js-4.2.2 lib/ruby2js/converter/yield.rb
ruby2js-4.2.1 lib/ruby2js/converter/yield.rb
ruby2js-4.2.0 lib/ruby2js/converter/yield.rb
ruby2js-4.1.7 lib/ruby2js/converter/yield.rb
ruby2js-4.1.6 lib/ruby2js/converter/yield.rb
ruby2js-4.1.5 lib/ruby2js/converter/yield.rb
ruby2js-4.1.4 lib/ruby2js/converter/yield.rb
ruby2js-4.1.3 lib/ruby2js/converter/yield.rb
ruby2js-4.1.2 lib/ruby2js/converter/yield.rb
ruby2js-4.1.1 lib/ruby2js/converter/yield.rb
ruby2js-4.1.0 lib/ruby2js/converter/yield.rb
ruby2js-4.0.5 lib/ruby2js/converter/yield.rb
ruby2js-4.0.4 lib/ruby2js/converter/yield.rb
ruby2js-4.0.3 lib/ruby2js/converter/yield.rb
ruby2js-4.0.2 lib/ruby2js/converter/yield.rb
ruby2js-4.0.1 lib/ruby2js/converter/yield.rb