Method: Openapi3Parser::Source#relative_to_root

Defined in:
lib/openapi3_parser/source.rb

#relative_to_rootString

Returns:

  • (String)


106
107
108
109
110
# File 'lib/openapi3_parser/source.rb', line 106

def relative_to_root
  return "" if root?

  source_input.relative_to(document.root_source.source_input)
end