Sha256: 95a842e6dd6868bc0a7a31c243cd48c9e9112faeb12b5e6143ddd252b9112de3
Contents?: true
Size: 555 Bytes
Versions: 16
Compression:
Stored size: 555 Bytes
Contents
require 'familia' require 'familia/test_helpers' @a = Bone.new 'atoken', 'akey' ## Familia::Set#add ret = @a.tags.add :a ret.class #=> Familia::Set ## Familia::Set#<< ret = @a.tags << :a << :b << :c ret.class #=> Familia::Set ## Familia::Set#members @a.tags.members.sort #=> ['a', 'b', 'c'] ## Familia::Set#member? knows when a value exists @a.tags.member? :a #=> true ## Familia::Set#member? knows when a value doesn't exist @a.tags.member? :x #=> false ## Familia::Set#member? knows when a value doesn't exist @a.tags.size #=> 3 @a.tags.clear
Version data entries
16 entries across 16 versions & 1 rubygems