Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4774

Re: Using "class Object" for a project

From 7stud -- <bbxx789_05ss@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: Using "class Object" for a project
Date 2011-05-19 12:37 -0500
Organization Service de news de lacave.net
Message-ID <717fee52af6aefd4dc83b6d8d78b6347@ruby-forum.com> (permalink)
References <a758af90f801ff5df85c80e0f184f560@ruby-forum.com>

Show all headers | View raw


Are you really that attached to the beauty of the word "Object"?

If you must use the name Object, you can always delete all the methods 
in Object(note that in ruby 1.9.2 the top class is BasicObject).  But 
'monkey patching' like that can affect the clients of your code--they 
may expect to have ruby's normal functionality available to them.

The easiest thing to do is just misspell Object, e.g. Obgect, Objekt, 
MyObject.

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using "class Object" for a project "Markus H." <shevegen@gmail.com> - 2011-05-19 12:21 -0500
  Re: Using "class Object" for a project Joel VanderWerf <joelvanderwerf@gmail.com> - 2011-05-19 12:58 -0500
  Re: Using "class Object" for a project 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-19 12:37 -0500
  Re: Using "class Object" for a project Robert Dober <robert.dober@gmail.com> - 2011-05-19 13:50 -0500
    Re: Using "class Object" for a project Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-19 15:05 -0500

csiph-web