<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Ruby_irb_Notes</id>
	<title>Ruby irb Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Ruby_irb_Notes"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Ruby_irb_Notes&amp;action=history"/>
	<updated>2026-05-20T16:01:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Ruby_irb_Notes&amp;diff=3287&amp;oldid=prev</id>
		<title>PeterHarding: Created page with &#039;=Notes=  http://www.tutorialspoint.com/ruby/ruby_input_output.htm  ==Dir==  &lt;pre&gt;  d = Dir.new(&#039;C:\TEMP&#039;)  d.each {|n| puts n }  d.each {|n| puts n if n=~/py$/ }  d.each {|n| put...&#039;</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Ruby_irb_Notes&amp;diff=3287&amp;oldid=prev"/>
		<updated>2010-03-17T23:56:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;=Notes=  http://www.tutorialspoint.com/ruby/ruby_input_output.htm  ==Dir==  &amp;lt;pre&amp;gt;  d = Dir.new(&amp;#039;C:\TEMP&amp;#039;)  d.each {|n| puts n }  d.each {|n| puts n if n=~/py$/ }  d.each {|n| put...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Notes=&lt;br /&gt;
&lt;br /&gt;
http://www.tutorialspoint.com/ruby/ruby_input_output.htm&lt;br /&gt;
&lt;br /&gt;
==Dir==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 d = Dir.new(&amp;#039;C:\TEMP&amp;#039;)&lt;br /&gt;
 d.each {|n| puts n }&lt;br /&gt;
 d.each {|n| puts n if n=~/py$/ }&lt;br /&gt;
 d.each {|n| puts n if d=~/txt$/ }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==File==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irb(main):048:0&amp;gt; File.exists? dd.entries[0]&lt;br /&gt;
=&amp;gt; true&lt;br /&gt;
File.ftype  dd.entries[2]&lt;br /&gt;
=&amp;gt; &amp;quot;file&amp;quot;&lt;br /&gt;
irb(main):047:0&amp;gt; File.directory?  dd.entries[2]&lt;br /&gt;
=&amp;gt; false&lt;br /&gt;
irb(main):048:0&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>