Class: YARD::CodeObjects::AppendixObject

Inherits:
Base
  • Object
show all
Defined in:
lib/yard-appendix/code_objects/appendix_object.rb

Overview

An object that is spawned by the @!appendix directive.

Instance Method Summary collapse

Instance Method Details

#pathObject



34
# File 'lib/yard-appendix/code_objects/appendix_object.rb', line 34

def path; ".#{type}.#{namespace && namespace.path}.#{name}" end

#titleObject



33
# File 'lib/yard-appendix/code_objects/appendix_object.rb', line 33

def title; "Appendix: #{name}" end

#to_sObject



35
# File 'lib/yard-appendix/code_objects/appendix_object.rb', line 35

def to_s; "#{name}-appendix" end

#typeObject



32
# File 'lib/yard-appendix/code_objects/appendix_object.rb', line 32

def type; :appendix end