Class: PDoc::Generators::AbstractGenerator
- Inherits:
-
Object
- Object
- PDoc::Generators::AbstractGenerator
- Defined in:
- lib/pdoc/generators/abstract_generator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root, options = {}) ⇒ AbstractGenerator
constructor
A new instance of AbstractGenerator.
-
#mkdir(name) ⇒ Object
Creates a new directory with read, write and execute permission.
Constructor Details
#initialize(root, options = {}) ⇒ AbstractGenerator
Returns a new instance of AbstractGenerator.
5 6 7 8 |
# File 'lib/pdoc/generators/abstract_generator.rb', line 5 def initialize(root, = {}) @root = root = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/pdoc/generators/abstract_generator.rb', line 4 def end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
4 5 6 |
# File 'lib/pdoc/generators/abstract_generator.rb', line 4 def root @root end |
Instance Method Details
#mkdir(name) ⇒ Object
Creates a new directory with read, write and execute permission.
11 12 13 |
# File 'lib/pdoc/generators/abstract_generator.rb', line 11 def mkdir(name) Dir.mkdir(name, 0755) end |