diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-24 23:17:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-24 23:17:16 +0100 |
commit | 075e4a8ca5804c15fcfd12e2ad528c794f6110b5 (patch) | |
tree | cde38c1c901bdcfdc1cec2883ded606be69e3c7f /lib/efl.rb | |
parent | 641348f136db30532c4f53b75ece1c26241e8a46 (diff) | |
download | ffi-efl-075e4a8ca5804c15fcfd12e2ad528c794f6110b5.zip ffi-efl-075e4a8ca5804c15fcfd12e2ad528c794f6110b5.tar.gz |
efl.rb add to_str alias for to_s
Diffstat (limited to 'lib/efl.rb')
-rw-r--r-- | lib/efl.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |