Skip to content

Commit

Permalink
Merge 0d3c264 into bbbdd84
Browse files Browse the repository at this point in the history
  • Loading branch information
ream88 committed Oct 2, 2014
2 parents bbbdd84 + 0d3c264 commit e7a6b58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/bson/binary.rb
Expand Up @@ -96,6 +96,18 @@ def initialize(data = "", type = :generic)
@type = type
end

# Get a nice string for use with object inspection.
#
# @example Inspect the binary.
# object_id.inspect
#
# @return [ String ] The binary in form BSON::Binary:object_id
#
# @since 2.3.0
def inspect
"BSON::Binary:#{object_id}"
end

# Encode the binary type
#
# @example Encode the binary.
Expand Down

0 comments on commit e7a6b58

Please sign in to comment.