[Nitro] Again me...
Emmanuel Piperakis
epiperak at softlab.ece.ntua.gr
Tue Sep 6 00:27:33 EDT 2005
Thanx for the tip on subclassing Float
The problem now it that Og does not accept this class as TrueClass type.
Why? George permits declarations of type Integer, Float, String, ... , and
TrueClass. Hash is a TrueClass and it can be used as a property, in the db
it is converted to Text type. But my class Curr (renamed it cause Currency
is reserved or something) is not accepted...
??
> class Currency
>
> def initialize(value = 0.0, type = 'JPY', precission = 0)
> @value, @type, @precission = value.to_f, type.to_s, precission.to_i
> end
>
> ...
>
> --
> ( o) ¥«¥é¥Á
> // trans.
> / / transfire at gmail.com
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
To teach is Primal, to Rule is Sin}
More information about the Nitro-general
mailing list