summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-24 23:17:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-24 23:17:16 +0100
commit075e4a8ca5804c15fcfd12e2ad528c794f6110b5 (patch)
treecde38c1c901bdcfdc1cec2883ded606be69e3c7f
parent641348f136db30532c4f53b75ece1c26241e8a46 (diff)
downloadffi-efl-075e4a8ca5804c15fcfd12e2ad528c794f6110b5.zip
ffi-efl-075e4a8ca5804c15fcfd12e2ad528c794f6110b5.tar.gz
efl.rb add to_str alias for to_s
-rw-r--r--lib/efl.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efl.rb b/lib/efl.rb
index 6f29dbd..19b5551 100644
--- a/lib/efl.rb
+++ b/lib/efl.rb
@@ -39,6 +39,7 @@ module Efl
def to_a; [self] end
def to_ary; [self] end
def to_s; Object.instance_method(:to_s).bind(self).call+' ['+self.to_ptr.to_s+']' end
+ alias :to_str :to_s
def to_ptr; @ptr; end
def === o; @ptr === o.to_ptr; end
def null?; @ptr.null?; end