Method: Utils::IRB::Regexp#show_match
- Defined in:
- lib/utils/irb.rb
#show_match(string) ⇒ Object
Show the match of this Regexp on the string.
372 373 374 |
# File 'lib/utils/irb.rb', line 372 def show_match(string) string =~ self ? "#{$`}<<#{$&}>>#{$'}" : "no match" end |