module Thoran::String::Captures

Public Instance Methods

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