module Nuggets::Data::ConsumeMixin

Public Instance Methods

consume(*args) → aString click to toggle source

Read DATA and rewind.

# File lib/nuggets/data/consume_mixin.rb, line 35
def consume(*args)
  pos, res = self.pos, read(*args)
  seek(pos)
  res
end