summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-08 15:36:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-08 15:36:16 +0200
commite4de8f2786d07723519dadcf7ba09da6e96895c6 (patch)
treeb8e642478e389204964f04b83f1b3cadde7781af /lib/efl
parentb4aa3eaf1991eb160288c1c534567b4c43b8c273 (diff)
downloadffi-efl-e4de8f2786d07723519dadcf7ba09da6e96895c6.zip
ffi-efl-e4de8f2786d07723519dadcf7ba09da6e96895c6.tar.gz
fix REinaList must respond to #to_a and #to_ary
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/eina_list.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efl/eina_list.rb b/lib/efl/eina_list.rb
index ac6bfad..15c1707 100644
--- a/lib/efl/eina_list.rb
+++ b/lib/efl/eina_list.rb
@@ -49,9 +49,10 @@ module Efl
p = l[:next]
end
end
- def to_ary
+ def to_a
inject([]) { |s,e| s<<e }
end
+ alias :to_ary :to_a
# for fun and tests
def append p
@ptr = Native.eina_list_append @ptr, p