diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-12 11:59:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-12 11:59:03 +0200 |
commit | a24f87f291e33b94844188fe9893975e44dc5ff2 (patch) | |
tree | ed2e7ce49a18a3fcdfbb128bd2e27634bf77f826 /lib | |
parent | c4c02d3bdd9cecf03667f2e6d152300eb7678e48 (diff) | |
download | ffi-efl-a24f87f291e33b94844188fe9893975e44dc5ff2.zip ffi-efl-a24f87f291e33b94844188fe9893975e44dc5ff2.tar.gz |
add ptrt parameter to REinaList#to_a
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/eina_list.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efl/eina_list.rb b/lib/efl/eina_list.rb index ba2bde3..7897827 100644 --- a/lib/efl/eina_list.rb +++ b/lib/efl/eina_list.rb @@ -58,6 +58,7 @@ module Efl end def to_a ptrt=nil return inject([]) { |s,e| s<<e } if ptrt.nil? + inject([]) { |s,e| s<< e.send('read_'+ptrt.to_s) } end alias :to_ary :to_a # for fun and tests |