Method: Sequence#readbehind1

Defined in:
lib/sequence.rb

#readbehind1Object

read element before the pos or nil if start of input, leaving position alone



82
83
84
# File 'lib/sequence.rb', line 82

def readbehind1
  slice pos-1 unless pos.zero?
end