The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Real Class

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Patrick Farley

Posts: 32
Nickname: pfarley
Registered: Sep, 2007

Patrick Farley is a developer and occasional tech lead with ThoughtWorks.
Real Class Posted: Sep 28, 2007 9:44 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Patrick Farley.
Original Post: Real Class
Feed Title: Klank Boom Klang
Feed URL: http://klankboomklang.com/feed/
Feed Description: Ruby and otherwise by Patrick Farley
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Patrick Farley
Latest Posts From Klank Boom Klang

Advertisement
It interesting that Ruby, a language which allows you to so easily bypass encapsulation, encapsulates it’s own internals to the point of occasional prevarication. Heres an example… pirate = Object.new def pirate.speak "Yarrrr" end pirate.class == Object.new.class #=> true In my last post I explained how the code above forces the interpreter to assign a newly created Singleton class to the [...]

Read: Real Class

Topic: Advice For Ruby Beginners 1 Previous Topic   Next Topic Topic: So, Thailand

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use