summaryrefslogtreecommitdiffstats
path: root/lib/efl/eina_list.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-12 11:59:03 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-12 11:59:03 +0200
commita24f87f291e33b94844188fe9893975e44dc5ff2 (patch)
treeed2e7ce49a18a3fcdfbb128bd2e27634bf77f826 /lib/efl/eina_list.rb
parentc4c02d3bdd9cecf03667f2e6d152300eb7678e48 (diff)
downloadffi-efl-a24f87f291e33b94844188fe9893975e44dc5ff2.zip
ffi-efl-a24f87f291e33b94844188fe9893975e44dc5ff2.tar.gz
add ptrt parameter to REinaList#to_a
Diffstat (limited to 'lib/efl/eina_list.rb')
-rw-r--r--lib/efl/eina_list.rb1
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