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

Version Path
familia-0.10.2 try/22_redis_object_set_try.rb
familia-0.10.1 try/22_redis_object_set_try.rb
familia-0.10.0 try/22_redis_object_set_try.rb
familia-0.9.3 try/22_redis_object_set_try.rb
familia-0.9.2 try/22_redis_object_set_try.rb
familia-0.9.1 try/22_redis_object_set_try.rb
familia-0.9.0 try/22_redis_object_set_try.rb
familia-0.7.1 try/22_redis_object_set_try.rb
familia-0.7.0 try/22_redis_object_set_try.rb
familia-0.6.10 try/22_redis_object_set_try.rb
familia-0.6.9 try/22_redis_object_set_try.rb
familia-0.6.8 try/22_redis_object_set_try.rb
familia-0.6.4 try/22_redis_object_set_try.rb
familia-0.6.3 try/22_redis_object_set_try.rb
familia-0.6.2 try/22_redis_object_set_try.rb
familia-0.6.1 try/22_redis_object_set_try.rb