Method: Browser::HTTP::Binary#each
- Defined in:
- opal/browser/http/binary.rb
#each {|byte| ... } ⇒ self
Iterate over each byte in the binary.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'opal/browser/http/binary.rb', line 30 def each(&block) return enum_for :each unless block index = 0 length = self.length while index < length block.call(self[index]) index += 1 end self end |