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