Sha256: 1d446f525a9d9a6fce42a16fd81d5b03df94152eb5a6c1e987ef6ab08e477c25

Contents?: true

Size: 335 Bytes

Versions: 28

Compression:

Stored size: 335 Bytes

Contents

module Ruby2JS
  class Converter

    # (ivasgn :@a
    #   (int 1))

    handle :ivasgn do |var, expression=nil|
      multi_assign_declarations if @state == :statement

      put "#{ var.to_s.sub('@', 'this.' + (underscored_private ? '_' : '#')) }"
      if expression
        put " = "; parse expression
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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