Class: Fzeet::Windows::ShellItemArray
- Inherits:
-
Object
- Object
- Fzeet::Windows::ShellItemArray
- Includes:
- Enumerable
- Defined in:
- lib/fzeet/windows/shell/Common.rb
Instance Method Summary collapse
- #count ⇒ Object (also: #size, #length)
- #each(&block) ⇒ Object
- #get(i) ⇒ Object
Instance Method Details
#count ⇒ Object Also known as: size, length
106 |
# File 'lib/fzeet/windows/shell/Common.rb', line 106 def count; FFI::MemoryPointer.new(:ulong) { |pc| next unless GetCount(pc) == S_OK; return pc.get_ulong(0) } end |
#each(&block) ⇒ Object
124 |
# File 'lib/fzeet/windows/shell/Common.rb', line 124 def each(&block) length.times { |i| get(i, &block) }; self end |