Class: MatchData

Inherits:
Object show all
Defined in:
lib/sugar-high/regexp.rb

Instance Method Summary collapse

Instance Method Details

#offset_afterObject



14
15
16
# File 'lib/sugar-high/regexp.rb', line 14

def offset_after
  offset(0)[1] +1
end

#offset_beforeObject



18
19
20
# File 'lib/sugar-high/regexp.rb', line 18

def offset_before
  offset(0)[0] -1
end