class OasRails::YARD::OasRailsFactory
def extract_text_and_parentheses_content(input)
-
(Array)
- An array containing the name and location.
Parameters:
-
input
(String
) -- The input text to parse.
def extract_text_and_parentheses_content(input) return unless input =~ /^(.+?)\(([^)]+)\)/ text = ::Regexp.last_match(1).strip parenthesis_content = ::Regexp.last_match(2).strip [text, parenthesis_content] end