Class: RspecApiDocs::Renderer::RaddocsRenderer

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

Defined Under Namespace

Classes: IndexSerializer, Link, ResourceSerializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resources) ⇒ RaddocsRenderer


12
13
14
# File 'lib/rspec_api_docs/formatter/renderer/raddocs_renderer.rb', line 12

def initialize(resources)
  @resources = resources
end

Instance Attribute Details

#resourcesObject (readonly)

Returns the value of attribute resources


10
11
12
# File 'lib/rspec_api_docs/formatter/renderer/raddocs_renderer.rb', line 10

def resources
  @resources
end

Instance Method Details

#renderObject


16
17
18
19
# File 'lib/rspec_api_docs/formatter/renderer/raddocs_renderer.rb', line 16

def render
  write_index
  write_examples
end