diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-08 15:36:16 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-08 15:36:16 +0200 |
commit | e4de8f2786d07723519dadcf7ba09da6e96895c6 (patch) | |
tree | b8e642478e389204964f04b83f1b3cadde7781af | |
parent | b4aa3eaf1991eb160288c1c534567b4c43b8c273 (diff) | |
download | ffi-efl-e4de8f2786d07723519dadcf7ba09da6e96895c6.zip ffi-efl-e4de8f2786d07723519dadcf7ba09da6e96895c6.tar.gz |
fix REinaList must respond to #to_a and #to_ary
-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 |