[Ironruby-core] call an overloaded constructor??

Patrick Brown patrickcbrown at gmail.com
Thu Nov 12 21:18:27 EST 2009


Hi

   That is fine in this case, can you tell me, in cases where I can't fall
back on a ruby class, is there a way to call an overloaded constructor?
 Your reply makes me worry a bit more.

Thanks,
Patrick

On Thu, Nov 12, 2009 at 7:11 PM, Ivan Porto Carrero <ivan at flanders.co.nz>wrote:

> But you can just use the ruby way and that is a lot less noisy
>
> for a local time
>
> Time.local 2009, 9, 28
> http://ruby-doc.org/core/classes/Time.html#M000254
>
> for utc
> Time.utc 2009, 9, 29
> http://ruby-doc.org/core/classes/Time.html#M000252
>
> It still creates a System::DateTime underneath
>
> ---
> Met vriendelijke groeten - Best regards - Salutations
> Ivan Porto Carrero
> Blog: http://flanders.co.nz
> Google Wave: portocarrero.ivan at googlewave.com
> Twitter: http://twitter.com/casualjim
> Author of IronRuby in Action (http://manning.com/carrero)
>
>
>
> On Fri, Nov 13, 2009 at 12:49 AM, Patrick Brown <patrickcbrown at gmail.com>wrote:
>
>> Hi
>>
>>    Is there a way for me to call an overloaded constructor??  I want
>> to say   date =  new DateTime(2009,9,28) using IronRuby 0.9.2.  I have been
>> searching quite a bit and haven't seen anything so far.
>>
>> Thank you,
>> Patrick
>>
>> _______________________________________________
>> Ironruby-core mailing list
>> Ironruby-core at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091112/0f106823/attachment.html>


More information about the Ironruby-core mailing list