Class: YARD::CLI::YardocOptions

Inherits:
Templates::TemplateOptions show all
Defined in:
lib/yard/cli/yardoc.rb

Overview

Default options used in yard doc command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class YARD::Options

Instance Attribute Details

#fileCodeObjects::ExtraFileObject

Returns the file object being rendered. The object key is not used so that a file may be rendered in the context of an object’s namespace (for generating links).

Returns:

  • (CodeObjects::ExtraFileObject)

    the file object being rendered. The object key is not used so that a file may be rendered in the context of an object’s namespace (for generating links).



48
49
50
# File 'lib/yard/cli/yardoc.rb', line 48

def file
  @file
end

#indexNumeric

Returns An index value for rendering sequentially related templates.

Returns:

  • (Numeric)

    An index value for rendering sequentially related templates



39
40
41
# File 'lib/yard/cli/yardoc.rb', line 39

def index
  @index
end

#itemCodeObjects::Base

Returns an extra item to send to a template that is not the main rendered object.

Returns:

  • (CodeObjects::Base)

    an extra item to send to a template that is not the main rendered object



43
44
45
# File 'lib/yard/cli/yardoc.rb', line 43

def item
  @item
end

#localeString

Returns the current locale.

Returns:

  • (String)

    the current locale



51
52
53
# File 'lib/yard/cli/yardoc.rb', line 51

def locale
  @locale
end

#objectsArray<CodeObjects::Base>

Returns the list of code objects to render the templates with.

Returns:



36
37
38
# File 'lib/yard/cli/yardoc.rb', line 36

def objects
  @objects
end

#readmeCodeObjects::ExtraFileObject

Returns the README file object rendered along with objects.

Returns:



32
33
34
# File 'lib/yard/cli/yardoc.rb', line 32

def readme
  @readme
end

Instance Method Details

#filesArray<CodeObjects::ExtraFileObject>

Returns the list of extra files rendered along with objects.

Returns:



11
# File 'lib/yard/cli/yardoc.rb', line 11

default_attr :files, lambda { [] }

#formatSymbol

Returns the default output format (:html).

Returns:

  • (Symbol)

    the default output format (:html).



24
# File 'lib/yard/cli/yardoc.rb', line 24

default_attr :format, :html

#onefileBoolean

Returns whether the data should be rendered in a single page, if the template supports it.

Returns:

  • (Boolean)

    whether the data should be rendered in a single page, if the template supports it.



28
# File 'lib/yard/cli/yardoc.rb', line 28

default_attr :onefile, false

#serializerSerializers::Base

Returns the default serializer for generating output to disk.

Returns:



21
# File 'lib/yard/cli/yardoc.rb', line 21

default_attr :serializer, lambda { Serializers::FileSystemSerializer.new }

#titleString

Returns the default title appended to each generated page.

Returns:

  • (String)

    the default title appended to each generated page



14
# File 'lib/yard/cli/yardoc.rb', line 14

default_attr :title, "Documentation by YARD #{YARD::VERSION}"

#verifierVerifier

Returns the default verifier object to filter queries.

Returns:

  • (Verifier)

    the default verifier object to filter queries



17
# File 'lib/yard/cli/yardoc.rb', line 17

default_attr :verifier, lambda { Verifier.new }