Sha256: ba60130eddea6d940258474fb275b972e0db220d99da89ba3f4cff5932f88ea0

Contents?: true

Size: 200 Bytes

Versions: 7

Compression:

Stored size: 200 Bytes

Contents

module Ruby2JS
  class Converter

    # (while
    #   (true)
    #   (...))

    handle :while do |condition, block|
      "while (#{ parse condition }) {#@nl#{ scope block }#@nl}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby2js-1.2.0 lib/ruby2js/converter/while.rb
ruby2js-1.1.5 lib/ruby2js/converter/while.rb
ruby2js-1.1.4 lib/ruby2js/converter/while.rb
ruby2js-1.1.3 lib/ruby2js/converter/while.rb
ruby2js-1.1.2 lib/ruby2js/converter/while.rb
ruby2js-1.1.1 lib/ruby2js/converter/while.rb
ruby2js-1.1.0 lib/ruby2js/converter/while.rb