Sha256: f0b591ff8b6154979007754342d4e69661df4b47ea92083c2a5c8b3a18cc8277

Contents?: true

Size: 162 Bytes

Versions: 5

Compression:

Stored size: 162 Bytes

Contents

x = ["x", "y", "z"]

class Foo

  attr_accessor :array
  
  def initialize(input)
    @array = input
  end
  
end



f = Foo.new(x)

x[0] = "change"

puts f.array

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hashmodel-0.4.0.beta1 _brainstorm/clone.rb
hashmodel-0.3.1 _brainstorm/clone.rb
hashmodel-0.3.0 _brainstorm/clone.rb
hashmodel-0.3.0.beta2 _brainstorm/clone.rb
hashmodel-0.3.0.beta1 _brainstorm/clone.rb