Class: RspecApiDocs::Renderer::RaddocsRenderer::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_api_docs/formatter/renderer/raddocs_renderer/link.rb

Class Method Summary collapse

Class Method Details

.call(resource_name, example_name) ⇒ Object


5
6
7
# File 'lib/rspec_api_docs/formatter/renderer/raddocs_renderer/link.rb', line 5

def self.call(resource_name, example_name)
  "#{resource_name.downcase.gsub(/[^a-z]/, '_')}/#{example_name.downcase.gsub(/[^a-z]/, '_')}.json"
end