..@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Patrick Brown
Sent: Friday, November 20, 2009 8:15 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] can't include System
Hi
It is funny how obvious some of these things turn out to be.
Thanks,
Pa
Hi
It is funny how obvious some of these things turn out to be.
Thanks,
Patrick
On Fri, Nov 20, 2009 at 10:49 AM, Ivan Porto Carrero wrote:
> Converter is a static class and those are mapped to modules
>
> module Converter
> def self.convert(inputDirectories, outputDirectory)
>
> end
Converter is a *delegate *type in the System namespace (it comes from
mscorlib.dll, not System.dll). You should probably put your class in a
custom namespace like so:
module MyModule
class Converter
...
end
end
On Fri, Nov 20, 2009 at 10:39 AM, Patrick Brown wrote:
> Hello
>
>Can any
Converter is a static class and those are mapped to modules
module Converter
def self.convert(inputDirectories, outputDirectory)
end
end
puts System::Converter.class #=> Module
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Google
Hello
Can anyone see why I can't include System in this little script? If I do
I get an exception 'Converter is not a class (TypeError)'. If I skip the
include and fully qualify the classes in that namespace this works
perfectly.
Thanks for your time and ideas,
Patrick
require 'System, Ve