Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Calling a class method from an extended object
dblack
2/2/2007 5:11:00 PM
1 Answer
Francois Beausoleil
2/2/2007 5:34:00 PM
0
Hi !2007/2/2, dblack@wobblini.net <dblack@wobblini.net>:> I would do it differently, because I've never been a fan of the> InstanceMethods/ClassMethods thing. I prefer just to include or> extend separate modules as needed and where needed. But I know it's> very popular.Here's what I did instead:class AuthenticatedSystemAuthorizationTest < Test::Unit::TestCase class Controller < MockControllerBase include AuthenticatedSystem end def setup @controller = Controller.new endendThank you, David, for your help !-- François Beausoleil
http://blog.teksol.info/http://piston.ruby...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Calling a class method from an extended object
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password