Method: Ronn::Index#initialize
- Defined in:
- lib/ronn/index.rb
#initialize(path) ⇒ Index
Returns a new instance of Index.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ronn/index.rb', line 28 def initialize(path) @path = path @references = [] @manuals = {} if block_given? read! yield elsif exist? read! File.read(path) end end |