solnic/virtus — Issue #62: ValueObjects are only needed once in memory
Author: senny
Created: 2012-02-09 20:11:37+00:00
State: open

The discussion in #61 brought up, that ValueObjects should not be duped or cloned.

```

ruby-1.9.2-p290 :004 > class Example
ruby-1.9.2-p290 :005?> include Virtus::ValueObject
ruby-1.9.2-p290 :006?> end
=> Example
ruby-1.9.2-p290 :007 > e = Example.new
=> #
ruby-1.9.2-p290 :008 > e.object_id
=> 70291737022180
ruby-1.9.2-p290 :009 > e.dup.object_id
=> 70291736987800
```