Class: YARD::Server::Commands::LibraryOptions

Inherits:
CLI::YardocOptions show all
Defined in:
lib/yard/server/commands/library_command.rb

Overview

Since:

  • 0.6.0

Instance Attribute Summary collapse

Attributes inherited from CLI::YardocOptions

#file, #index, #item, #locale, #objects, #readme

Attributes inherited from Templates::TemplateOptions

#default_return, #embed_mixins, #format, #globals, #hide_void_return, #highlight, #index, #markup, #markup_provider, #no_highlight, #object, #owner, #page_title, #template, #type, #verifier

Instance Method Summary collapse

Methods inherited from CLI::YardocOptions

#files, #format, #onefile, #title, #verifier

Methods inherited from Templates::TemplateOptions

#embed_mixins_match?

Methods inherited from Options

#==, #[], #[]=, default_attr, #delete, #inspect, #merge, #method_missing, #reset_defaults, #tap, #to_hash, #update

Dynamic Method Handling

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

Instance Attribute Details

#commandObject

Since:

  • 0.6.0



14
15
16
# File 'lib/yard/server/commands/library_command.rb', line 14

def command
  @command
end

#framesObject

Since:

  • 0.6.0



15
16
17
# File 'lib/yard/server/commands/library_command.rb', line 15

def frames
  @frames
end

Instance Method Details

#adapterObject

Since:

  • 0.6.0



8
# File 'lib/yard/server/commands/library_command.rb', line 8

def adapter; @command.adapter end

#each {|:adapter, adapter| ... } ⇒ Object

Yields:

Since:

  • 0.6.0



17
18
19
20
21
22
23
# File 'lib/yard/server/commands/library_command.rb', line 17

def each(&block)
  super(&block)
  yield(:adapter, adapter)
  yield(:library, library)
  yield(:single_library, single_library)
  yield(:serializer, serializer)
end

#libraryObject

Since:

  • 0.6.0



9
# File 'lib/yard/server/commands/library_command.rb', line 9

def library; @command.library end

#serializeObject

Since:

  • 0.6.0



12
# File 'lib/yard/server/commands/library_command.rb', line 12

def serialize; false end

#serializerObject

Since:

  • 0.6.0



11
# File 'lib/yard/server/commands/library_command.rb', line 11

def serializer; @command.serializer end

#single_libraryObject

Since:

  • 0.6.0



10
# File 'lib/yard/server/commands/library_command.rb', line 10

def single_library; @command.single_library end