summaryrefslogtreecommitdiffstats
path: root/lib/efl/eina_list.rb
diff options
context:
space:
mode:
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