class OasRails::YARD::OasRailsFactory

def text_and_required(text)

Returns:
  • (Array) - An array containing the text and a required flag.

Parameters:
  • text (String) -- The text to parse.
def text_and_required(text)
  if text.start_with?('!')
    [text.sub(/^!/, ''), true]
  else
    [text, false]
  end
end