class Array

Public Instance Methods

full_fill(val, len) click to toggle source
# File lib/fastdfs-client/extend_core.rb, line 6
def full_fill(val, len)
  self.fill(val, self.length...len)
end
to_pack_long() click to toggle source
# File lib/fastdfs-client/extend_core.rb, line 2
def to_pack_long
  self.each_with_index.inject(0){|s, item| s = s | (item[0] << (56 - (item[1] * 8))); s }
end