Method: Sequence#-

Defined in:
lib/sequence.rb

#-(other) ⇒ Object

if passed an integer arg, return a new position decreased by len. if passed a position, return the distance (number or elements) from other (a #position) to self. This can be +, -, or 0.



456
457
458
459
460
461
462
# File 'lib/sequence.rb', line 456

def -(other)
  if position?(other)
    pos-other.pos
  else
    position(pos-other)
  end
end