<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby Objects, Class-Objects and MetaClass-Objects</title>
	<atom:link href="http://www.dyrathror.com/2009/07/ruby-objects-class-objects-and-metaclass-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dyrathror.com/2009/07/ruby-objects-class-objects-and-metaclass-objects/</link>
	<description>Stay tuned ...</description>
	<lastBuildDate>Tue, 11 Oct 2011 18:55:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: HG</title>
		<link>http://www.dyrathror.com/2009/07/ruby-objects-class-objects-and-metaclass-objects/comment-page-1/#comment-147</link>
		<dc:creator>HG</dc:creator>
		<pubDate>Tue, 11 Oct 2011 18:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dyrathror.com/?p=368#comment-147</guid>
		<description>The use of Wrapper classes can solve problems with non oop fixnum implementation in ruby.

class Fixnum1
   def timesSayZef
      times { puts &quot;Zef&quot; }
   end
end
In Ruby when you define a class that already exists (such as Fixnum, which represents a number, such as 100), it will merge the two definitions. So in this case I would add a timesSayZef method to the Fixnum class. When I now do this: 

10.timesSayZefit will print: 
Zef
Zef
Zef
Zef
Zef
Zef
Zef
Zef
Zef
Zef</description>
		<content:encoded><![CDATA[<p>The use of Wrapper classes can solve problems with non oop fixnum implementation in ruby.</p>
<p>class Fixnum1<br />
   def timesSayZef<br />
      times { puts &#8220;Zef&#8221; }<br />
   end<br />
end<br />
In Ruby when you define a class that already exists (such as Fixnum, which represents a number, such as 100), it will merge the two definitions. So in this case I would add a timesSayZef method to the Fixnum class. When I now do this: </p>
<p>10.timesSayZefit will print:<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef<br />
Zef</p>
]]></content:encoded>
	</item>
</channel>
</rss>

