Class: Mount::Iterator
- Inherits:
-
Object
- Object
- Mount::Iterator
- Defined in:
- lib/rbmount/iterator.rb
Instance Method Summary collapse
- #direction ⇒ Object
- #finalize(id = nil) ⇒ Object
-
#initialize(direction) ⇒ Iterator
constructor
A new instance of Iterator.
- #reset ⇒ Object
- #to_c ⇒ Object
Constructor Details
Instance Method Details
#direction ⇒ Object
31 32 33 |
# File 'lib/rbmount/iterator.rb', line 31 def direction Mount::C.mnt_iter_get_direction(@pointer) end |
#finalize(id = nil) ⇒ Object
40 41 42 |
# File 'lib/rbmount/iterator.rb', line 40 def finalize (id=nil) Mount::C.mnt_free_iter(@pointer) end |
#reset ⇒ Object
35 36 37 38 |
# File 'lib/rbmount/iterator.rb', line 35 def reset Mount::C.mnt_reset_iter(@pointer) self end |
#to_c ⇒ Object
44 45 46 |
# File 'lib/rbmount/iterator.rb', line 44 def to_c @pointer end |