diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 22:42:30 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 22:42:30 +0200 |
commit | 89878a056bc5c46e54a8df43f6f2969e05f8045c (patch) | |
tree | 195d5431b57d588bc0e99772aea53455f3cbad22 /lib/efl/eina_list.rb | |
parent | 19b9118fccb1766fa55fd920853c7e2767816969 (diff) | |
download | ffi-efl-89878a056bc5c46e54a8df43f6f2969e05f8045c.zip ffi-efl-89878a056bc5c46e54a8df43f6f2969e05f8045c.tar.gz |
fix ArgumentError in various constructors
Diffstat (limited to 'lib/efl/eina_list.rb')
-rw-r--r-- | lib/efl/eina_list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efl/eina_list.rb b/lib/efl/eina_list.rb index e67c037..e0e0d36 100644 --- a/lib/efl/eina_list.rb +++ b/lib/efl/eina_list.rb @@ -10,7 +10,7 @@ class Array elsif o.is_a? FFI::Pointer Efl::EinaList::REinaList.new(o).to_ary else - raise ArgumentError.new " wrong argument #{o.class.name}" + raise ArgumentError.new "wrong argument #{o.class.name}" end end end @@ -41,7 +41,7 @@ module Efl when Array o.inject(FFI::Pointer::NULL) { |p,e| Efl::EinaList.eina_list_append p, e } else - raise ArgumentError.new "#{ptr.class} valid argument" + raise ArgumentError.new "wrong argument #{o.class.name}" end ) end |