Hello,

Thank you for the quick response. You are right, the documentation states 
that this should be a string, and it does work when passing a string.

I'd still like to note that this is an inconsistent behavior in Ruby, and 
the fact that IRB crashes is even more weird (a REPL should never crash):

> StandardError.new("foo") # => <StandardError: foo>
> StandardError.new(String) # => <StandardError: String>
> NameError.new("foo") # => <NameError: foo>
> NameError.new(String) # => Exception: `to_s': can't convert Class into 
String (TypeError)

I've sent a patch (
http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/43447) 
and it was accepted so I guess that solves it.
Since this is a language (probably even implementation specific) bug, 
there's no point in fixing anything in ruote. I'm still wondering where the 
exception went, though.

Thank you, again.
--
Or Cohen.

-- 
-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to