entries -> [Pathname]
[permalink][rdoc]self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
require 'pathname'
require 'pp'
pp Pathname('/usr/local').entries
# => [#<Pathname:.>,
# #<Pathname:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathname:include>,
# #<Pathname:lib>,
# #<Pathname:opt>,
# #<Pathname:sbin>,
# #<Pathname:share>,
# #<Pathname:var>]
[SEE_ALSO] Dir.entries