class Doc::RootConfig
Attributes
documentor[R]
Public Class Methods
configurator(name, klass)
click to toggle source
# File lib/doc/root_config.rb, line 21 def self.configurator(name, klass) class_eval <<-RUBY, __FILE__, __LINE__ def #{name}(*arguments, &block) configurators << #{klass}.new(documentor, *arguments, &block) end RUBY end
new(documentor, *arguments, &block)
click to toggle source
Calls superclass method
Doc::ConfigObject::new
# File lib/doc/root_config.rb, line 4 def initialize(documentor, *arguments, &block) @documentor = documentor super :title, *arguments, &block if clean_after if !clean_after.is_a?(Numeric) raise "clean_after must be a number, got #{clean_after.inspect}" elsif clean_after < 0 raise "clean_after must zero or greater, got #{clean_after.inspect}" end end end
Public Instance Methods
configurators()
click to toggle source
# File lib/doc/root_config.rb, line 17 def configurators @configurators ||= [] end