Class: Array
Instance Method Summary collapse
Instance Method Details
#full_fill(val, len) ⇒ Object
6 7 8 |
# File 'lib/fastdfs-client/extend_core.rb', line 6 def full_fill(val, len) self.fill(val, self.length...len) end |
#to_pack_long ⇒ Object
2 3 4 |
# 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 |