summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 10c86f6417..cfc5489ea0 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -85,6 +85,20 @@ public
@data == rhs.data
end
end
+
+ def to_str
+ content.to_str
+ end
+
+ def to_s
+ content.to_s
+ end
+
+ private
+
+ def content
+ @is_null ? nil : data
+ end
end