Class: Kitkat::Reader
- Inherits:
-
Object
- Object
- Kitkat::Reader
- Includes:
- Enumerable
- Defined in:
- lib/kitkat/reader.rb
Overview
Directory operations.
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(root) ⇒ Reader
constructor
A new instance of Reader.
Constructor Details
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
10 11 12 |
# File 'lib/kitkat/reader.rb', line 10 def root @root end |
Instance Method Details
#each ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/kitkat/reader.rb', line 18 def each(&) return enum_for(:each) unless block_given? traverse(root, &) self end |