class RuboCop::AST::RegexpNode

def content

Returns:
  • (String) - a string of regexp content
def content
  children.select(&:str_type?).map(&:str_content).join
end