Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: BasicObject & OpenStruct in Ruby 1.8.7-preview3
Suraj Kurapati
5/20/2008 11:29:00 PM
Akinori MUSHA wrote:
> The new version of Ruby includes many bug fixes, lots of feature
> enhancements and some performance improvements since 1.8.6 while
> maintaining stability and backward compatibility with the previous
> release to a high degree
Is the BasicObject class (from Ruby 1.9) included in Ruby 1.8.7?
Also, does OpenStruct derive from BasicObject in Ruby 1.8.7? So that we
no longer have to undef type and id to use those properties in our
OpenStructs?
require 'ostruct'
class OpenStruct
undef id # deprecated in Ruby 1.8; removed in 1.9
undef type # same thing
end
Thanks for your consideration.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: BasicObject & OpenStruct in Ruby 1.8.7-preview3
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