Skip to content

Commit 00f9d4c

Browse files
committed
RUBY-220 - Plumbing to support custom types: serializing and deserializing custom domain objects defined by the client.
* Update Tuple.inspect to be consistent with how other object .inspect's are formatted.
1 parent 8f60fea commit 00f9d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cassandra/tuple.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def size
5555
end
5656

5757
def inspect
58-
"#<Cassandra::Tuple:0x#{object_id.to_s(16)} #{self}>"
58+
"#<Cassandra::Tuple:0x#{object_id.to_s(16)} types=#{@types.inspect}, []=#{@values.inspect}>"
5959
end
6060
end
6161

@@ -114,7 +114,7 @@ def to_s
114114

115115
# @private
116116
def inspect
117-
"#<Cassandra::Tuple:0x#{object_id.to_s(16)} #{self}>"
117+
"#<Cassandra::Tuple:0x#{object_id.to_s(16)} []=#{@values.inspect}>"
118118
end
119119

120120
# @private

0 commit comments

Comments
 (0)