C
Charles Comstock
I don't know who wide spread this is in RMagick, but isn't Pathname supposed to
act like a string or File? Got this error below when I tried to use a pathname
as a parameter to ImageList.new. Is Pathname missing a to_str or something like that
or is RMagick being to strict about checking types? Easy fix to use
pathname.to_s for the arg to work, but I figured someone might like to know.
Charles Comstock
/home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in `read': argument
must be String or File (Pathname given) (TypeError\
)
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in
`initialize'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in
`each'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1376:in
`initialize'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1376:in
`new'
from -:9:in `processImage'
from -:25
from -:24:in `each'
from -:24
from -:24:in `chdir'
from -:23
from -:23:in `each'
from -:21
from -:21
act like a string or File? Got this error below when I tried to use a pathname
as a parameter to ImageList.new. Is Pathname missing a to_str or something like that
or is RMagick being to strict about checking types? Easy fix to use
pathname.to_s for the arg to work, but I figured someone might like to know.
Charles Comstock
/home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in `read': argument
must be String or File (Pathname given) (TypeError\
)
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in
`initialize'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1377:in
`each'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1376:in
`initialize'
from /home/cec/s/c/cc1/usr/lib/ruby/site_ruby/1.8/RMagick.rb:1376:in
`new'
from -:9:in `processImage'
from -:25
from -:24:in `each'
from -:24
from -:24:in `chdir'
from -:23
from -:23:in `each'
from -:21
from -:21