Sha256: 24544e19363fb837a923e43dcd70b7b5063020f6d3802f4402fb24d0e68923af

Contents?: true

Size: 200 Bytes

Versions: 7

Compression:

Stored size: 200 Bytes

Contents

module Ruby2JS
  class Converter

    # (and-asgn
    #   (lvasgn :a
    #   (int 1))

    handle :and_asgn do |var, value|
      "#{ parse var } = #{parse var} && #{ parse value }"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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