Method: MatchData#breakdown
- Defined in:
- lib/innate/regexp.rb
#breakdown ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/innate/regexp.rb', line 45 def breakdown s = [] length.times do |o| if offset(o) == [nil, nil] s << '' else s << (' ' * offset(o).first) + self[o] + (' ' * (string.length - offset(o).last)) end end s end |