Sha256: 8a501f8b8689005b3f08edfc1021ff5d17001c33e847102c301491d5385f2bcd

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

require 'familia'
require 'familia/test_helpers'

@a = Bone.new 'atoken', 'akey'

## Familia::Object::Set#add
ret = @a.tags.add :a
ret.class
#=> Familia::Object::Set

## Familia::Object::Set#<<
ret = @a.tags << :a << :b << :c
ret.class
#=> Familia::Object::Set

## Familia::Object::Set#members
@a.tags.members.sort
#=> ['a', 'b', 'c']

## Familia::Object::Set#member? knows when a value exists
@a.tags.member? :a
#=> true

## Familia::Object::Set#member? knows when a value doesn't exist
@a.tags.member? :x
#=> false

## Familia::Object::Set#member? knows when a value doesn't exist
@a.tags.size
#=> 3


@a.tags.destroy!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
familia-0.6.0 try/22_redis_object_set_try.rb