Class: Twb::Util::DocPrep
- Inherits:
-
Object
- Object
- Twb::Util::DocPrep
- Defined in:
- lib/twb/util/docprep.rb
Constant Summary collapse
- @@dir =
'./ttdoc'
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
Instance Method Summary collapse
- #init(dirName) ⇒ Object
-
#initialize ⇒ DocPrep
constructor
A new instance of DocPrep.
- #prepFile(fileName) ⇒ Object
- #reset ⇒ Object
Constructor Details
#initialize ⇒ DocPrep
Returns a new instance of DocPrep.
25 26 27 |
# File 'lib/twb/util/docprep.rb', line 25 def initialize reset end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
23 24 25 |
# File 'lib/twb/util/docprep.rb', line 23 def dir @dir end |
Instance Method Details
#init(dirName) ⇒ Object
38 39 40 |
# File 'lib/twb/util/docprep.rb', line 38 def init dirName Dir.mkdir @Name end |
#prepFile(fileName) ⇒ Object
34 35 36 |
# File 'lib/twb/util/docprep.rb', line 34 def prepFile fileName "#{@dir}/#{fileName}" end |
#reset ⇒ Object
29 30 31 32 |
# File 'lib/twb/util/docprep.rb', line 29 def reset @dir = @@dir init end |