module Thoran::String::Capture

Public Instance Methods

capture(regex) click to toggle source
# File lib/Thoran/String/Capture/capture.rb, line 14
def capture(regex)
  if md = self.match(regex)
    md[1]
  else
    nil
  end
end