From 075e4a8ca5804c15fcfd12e2ad528c794f6110b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 24 Feb 2012 23:17:16 +0100 Subject: efl.rb add to_str alias for to_s --- lib/efl.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.1-2-g2b99