Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
remove
Steven Burnett
5/22/2007 12:55:00 PM
--- sairam MP <sai438@gmail.com> wrote:
> class Foo
> attr_accessor :bar
>
>
> def foo
> self.bar = 1
>
>
> if false
> bar = 2 # never executed
> end
>
>
> p self.bar # prints 1
> p bar # prints nil
> end
> end
>
> --
> Posted via
http://www.ruby-...
.
>
>
____________________________________________________________________________________Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
remove
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