Class: Twb::Util::DocPrep

Inherits:
Object
  • Object
show all
Defined in:
lib/twb/util/docprep.rb

Constant Summary collapse

@@dir =
'./ttdoc'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocPrep

Returns a new instance of DocPrep.



25
26
27
# File 'lib/twb/util/docprep.rb', line 25

def initialize
    reset
end

Instance Attribute Details

#dirObject

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

#resetObject



29
30
31
32
# File 'lib/twb/util/docprep.rb', line 29

def reset
    @dir = @@dir
    init
end