[Ironruby-core] undefined Method 'downcase'

Marco Kotrotsos lists at ruby-forum.com
Thu Mar 19 03:08:54 EDT 2009

Thank you Ivan, that has been most helpful!


Ivan Porto carrero wrote:
> A CLR string is not the same as a ruby string. Calling .to_s before 
> downcase
> should work or you can monkey patch System::String  and add the method
> downcase to the clr string class if it bothers you too much
> class System::String
>   def downcase
>      self.to_s.downcase
>   end
> end

Posted via http://www.ruby-forum.com/.

More information about the Ironruby-core mailing list