Method: Teleinfo::Parser#each
- Defined in:
- lib/teleinfo.rb
#each ⇒ Object
58 59 60 61 62 63 64 65 |
# File 'lib/teleinfo.rb', line 58 def each count = 0 until (frame = self.next).nil? || @fully_parsed yield frame if block_given? count += 1 end count end |