Skip to content

Commit 076a21c

Browse files
committed
Clarify doc for Packer#to_str and Packer#full_pack
1 parent 0c81cba commit 076a21c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

doclib/msgpack/packer.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,19 @@ def size
176176
def empty?
177177
end
178178

179+
#
180+
# Returns all data in the buffer as a string, and reset the buffer.
181+
#
182+
# @return [String]
183+
#
184+
def full_pack
185+
end
186+
179187
#
180188
# Returns all data in the buffer as a string. Same as buffer.to_str.
181189
#
190+
# Does not empty the buffer, in most case _full_pack_ is prefered.
191+
#
182192
# @return [String]
183193
#
184194
def to_str

0 commit comments

Comments
 (0)