Class: PathList::PathAndMatchData

Inherits:
Pathname show all
Defined in:
lib/path_list.rb

Instance Attribute Summary collapse

Attributes included from CoreEx::Pathname

#open_mode

Class Method Summary collapse

Methods inherited from Pathname

#temp?

Methods included from CoreEx::Pathname

#/, #cp, #cp_r, #ensure_mkdir, #ensure_mkpath, #expand_path_with, #ext, #extsplit, #import!, #load_path!, #mv, #overwrite, #rm, #rm_f, #rm_r, #rm_rf, #split, #split_with_load_path, #to_io, #to_path, #to_yaml_string, #unlink

Instance Attribute Details

#matchObject

Returns the value of attribute match.



372
373
374
# File 'lib/path_list.rb', line 372

def match
  @match
end

Class Method Details

.new(path, match = nil) ⇒ Object



373
374
375
376
377
378
379
380
381
# File 'lib/path_list.rb', line 373

def self.new path, match=nil
  if match.nil?
    Pathname.new path
  else
    o = super(path)
    o.match = match
    o
  end
end