RubyGems Navigation menu

mutability 1.0.3

Mutability is a module that provides the very simple ability to designate an "original" version of an object that is frozen, and will not change even if the working copy of the object does. The best example is a Hash or Array -- collections like those exist partly so they can be mutated in some way, either by adding or removing elements or changing their order. Now, rather than having to establish a separate "original" version of the object (not to mention dealing with the whole ivars-act-like-pointers-and-can-get-magically-changed-oops problem), you can use a MutableHash or MutableArray, and then change it to your heart's content. The MutableHash/Array are built from the Mutability mix-in, so downloading this gem also provides a library for you to add the same capabilities to any other Class you might want. Also included is the ability to revert to the original form with a single method call.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.0.3 - December 24, 2014 (5.5 KB)
  2. 1.0.2 - December 24, 2014 (5.5 KB)
  3. 1.0.1 - December 24, 2014 (5.5 KB)
  4. 1.0.0 - December 24, 2014 (5.0 KB)

Development 依赖 (2):

rubocop >= 0

业主:

作者:

  • Kelli Searfos

SHA 256 校验和:

0aef394f6f7a86b52b6d8a2453673ab4ae9fbf400cd1ba6d1722f98655aeaecf

下载总量 10,024

这个版本 3,224

许可:

MIT

需要的 Ruby 版本: >= 0

链接: