Class: Documentary::DocblockCollection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/documentary/docblock_collection.rb

Instance Method Summary collapse

Constructor Details

#initializeDocblockCollection

Returns a new instance of DocblockCollection.



8
9
10
# File 'lib/documentary/docblock_collection.rb', line 8

def initialize
  @collection = []
end

Instance Method Details

#endpointsObject



20
21
22
# File 'lib/documentary/docblock_collection.rb', line 20

def endpoints
  fetch_subset :endpoint
end

#resourcesObject



16
17
18
# File 'lib/documentary/docblock_collection.rb', line 16

def resources
  fetch_subset :resource
end

#title_blocksObject



12
13
14
# File 'lib/documentary/docblock_collection.rb', line 12

def title_blocks
  fetch_subset :title_block
end