Method: Based::BaseDirectory#initialize
- Defined in:
- lib/based.rb
#initialize(path, options = {}) ⇒ BaseDirectory
Initialise from absolute file path. Options include :dirExclude, :fileInclude and :fileExclude
130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/based.rb', line 130 def initialize(path, = {}) super() @name = nil @parent = nil @base = self @relativePath = "" @pathElements = [] @fullPath = path.end_with?("/") ? path : path + "/" @dirExclude = .fetch(:dirExclude, nil) @fileInclude = .fetch(:fileInclude, nil) @fileExclude = .fetch(:fileExclude, nil) end |