34,333
edits
Changes
→Directory Listings in Ruby
<pre>
Dir.entries(".")
=> ["techotopia_stats.jpg", "toolButton.png", ".", "..", "techotopia_stats_since_start.jpg", "music_728x90_1.jpg", "music_468x60_a.jpg", "Fedora_essentials.jpg"]
</pre>
Fedora_essentials.jpg
</pre>
== Summary ==
This chapter has covered the basics of directory handling in Ruby. The next chapter will cover the concepts of Ruby file handling.