Sha256: 78eeb5b9e1da9dcefcbecda9d7f5df802cf4a4468464018ea29616a19ad28b8a

Contents?: true

Size: 193 Bytes

Versions: 29

Compression:

Stored size: 193 Bytes

Contents

module Ruby2JS
  class Converter

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

    handle :ivasgn do |var, expression|
      "#{ var.to_s.sub('@', 'this._') } = #{ parse expression }"
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ruby2js-1.15.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.15.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.14.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.14.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.13.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.13.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.12.2 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.12.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.12.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.11.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.11.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.10.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.9.3 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.9.2 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.9.1 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.9.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.8.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.7.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.6.0 lib/ruby2js/converter/ivasgn.rb
ruby2js-1.5.0 lib/ruby2js/converter/ivasgn.rb