class Doc::Configurator
Constants
- PARSABLE_EXTENSIONS_GLOB
Attributes
config[R]
documentor[R]
Public Class Methods
default_config_key(value = nil)
click to toggle source
# File lib/doc/configurator.rb, line 8 def default_config_key(value = nil) @default_config_key = value.to_sym if value @default_config_key || :default end
inherited(subclass)
click to toggle source
# File lib/doc/configurator.rb, line 4 def inherited(subclass) RootConfig.configurator subclass.name.underscore.split('/').last, subclass end
new(documentor, *arguments, &block)
click to toggle source
# File lib/doc/configurator.rb, line 15 def initialize(documentor, *arguments, &block) @documentor = documentor @config = ConfigObject.new(self.class.default_config_key, *arguments, &block) end
Private Instance Methods
builder(options)
click to toggle source
# File lib/doc/configurator.rb, line 30 def builder(options) Builder.new(documentor, options) end
merger(options)
click to toggle source
# File lib/doc/configurator.rb, line 34 def merger(options) Merger.new(documentor, options) end
sources_dir()
click to toggle source
# File lib/doc/configurator.rb, line 26 def sources_dir documentor.sources_dir.tap(&:mkpath) end