Method: Doc::RootConfig#initialize
- Defined in:
- lib/doc/root_config.rb
#initialize(documentor, *arguments, &block) ⇒ RootConfig
Returns a new instance of RootConfig.
4 5 6 7 8 9 10 11 12 13 14 15 |
# 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 |