[ANN] WACreditCard

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] WACreditCard

keith1y
Hello,

I reworked this from rubygems creditcard...


    WACreditCard types.  #(#mastercard #visa #americanExpress
#dinersClub #enroute #discover #jcb #bankcard #switch #solo)
       
    (WACreditCard number: '5276 4400 6542 1319') isCreditCard.
     
    (WACreditCard number: '5276 4400 6542 1319') is: #mastercard.

The latest addition to the Jetsam package,

Installer ss project:'311'; install: 'Kernel-Extensions'.
Installer ss project:'Jetsam'; install: 'Seaside28Jetsam'.

Or browse the package and just load the WACreditCard class

cheers

Keith

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: [ANN] WACreditCard

Ramon Leon-5
> I reworked this from rubygems creditcard...
>
>
>     WACreditCard types.  #(#mastercard #visa #americanExpress
> #dinersClub #enroute #discover #jcb #bankcard #switch #solo)
>        
>     (WACreditCard number: '5276 4400 6542 1319') isCreditCard.
>      
>     (WACreditCard number: '5276 4400 6542 1319') is: #mastercard.
>
> The latest addition to the Jetsam package,
>
> Installer ss project:'311'; install: 'Kernel-Extensions'.
> Installer ss project:'Jetsam'; install: 'Seaside28Jetsam'.
>
> Or browse the package and just load the WACreditCard class
>
> cheers
>
> Keith

Isn't it a bit non idiomatic to have an instance of a class answer no to an
isClassType method?  Wouldn't isValid communicate the intent better than
isCreditCard?

Ramon Leon
http://onsmalltalk.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] WACreditCard

keith1y
 
> Isn't it a bit non idiomatic to have an instance of a class answer no to an
> isClassType method?  Wouldn't isValid communicate the intent better than
> isCreditCard?
>
> Ramon Leon
>  
agreed, thanks Ramon

Keith
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside