diff options
-rw-r--r-- | lib/efl/eina_list.rb | 3 |
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 |