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, options = {})
  super()
  @name = nil
  @parent = nil
  @base = self
  @relativePath = ""
  @pathElements = []
  @fullPath = path.end_with?("/") ? path : path + "/"
  @dirExclude = options.fetch(:dirExclude, nil)
  @fileInclude = options.fetch(:fileInclude, nil)
  @fileExclude = options.fetch(:fileExclude, nil)
end