Sha256: 34978ec8df7f1d0ec93723247321e08c41a9de1b57380e816f29318aadf349b1

Contents?: true

Size: 198 Bytes

Versions: 7

Compression:

Stored size: 198 Bytes

Contents

module Ruby2JS
  class Converter

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

    handle :or_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/orasgn.rb
ruby2js-1.1.5 lib/ruby2js/converter/orasgn.rb
ruby2js-1.1.4 lib/ruby2js/converter/orasgn.rb
ruby2js-1.1.3 lib/ruby2js/converter/orasgn.rb
ruby2js-1.1.2 lib/ruby2js/converter/orasgn.rb
ruby2js-1.1.1 lib/ruby2js/converter/orasgn.rb
ruby2js-1.1.0 lib/ruby2js/converter/orasgn.rb