Class: ZooKeeper::ZKString

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/zkruby/bindata.rb

Instance Method Summary collapse

Instance Method Details

#getObject



17
# File 'lib/zkruby/bindata.rb', line 17

def get;   self.data; end

#set(v) ⇒ Object



18
# File 'lib/zkruby/bindata.rb', line 18

def set(v) self.data = v; end

#snapshotObject



19
20
21
# File 'lib/zkruby/bindata.rb', line 19

def snapshot
    super.force_encoding('UTF-8')
end