Module: Thoran::String::Captures
- Defined in:
- lib/Thoran/String/Captures/captures.rb
Instance Method Summary collapse
Instance Method Details
#captures(regex) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/Thoran/String/Captures/captures.rb', line 14 def captures(regex) if md = self.match(regex) md.captures else [] end end |