Sha256: 9239c9c520e8cc8a23bb475032384bcab1190d31d57768ec8ba7e9f2dcc83639

Contents?: true

Size: 580 Bytes

Versions: 19

Compression:

Stored size: 580 Bytes

Contents

module VariablesSpecs
  class ParAsgn
    attr_accessor :x

    def initialize
      @x = 0
    end

    def inc
      @x += 1
    end

    def to_ary
      [1,2,3,4]
    end
  end

  class OpAsgn
    attr_accessor :a, :b, :side_effect
    
    def do_side_effect
      self.side_effect = true
      return @a
    end

    def do_more_side_effects
      @a += 5
      self
    end

    def do_bool_side_effects
      @b += 1
      self
    end
  end

  class Hashalike
    def [](k) k end
    def []=(k, v) [k, v] end
  end

  def self.reverse_foo(a, b)
    return b, a
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhodes-2.0.0.beta11 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta10 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta9 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta8 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta7 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta6 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta4 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta3 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.5 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta2 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-2.0.0.beta1 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.4 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.3 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.2 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.1 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.5.0 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.4.2 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.4.1 spec/framework_spec/app/spec/language/fixtures/variables.rb
rhodes-1.4.0 spec/framework_spec/app/spec/language/fixtures/variables.rb