Class: AppMap::Config::Path

Inherits:
PathStruct show all
Defined in:
lib/appmap/config/path.rb

Overview

Path is an abstract configuration of a file, directory, or package.

Direct Known Subclasses

Directory, File

Instance Attribute Summary collapse

Attributes inherited from PathStruct

#path

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Path

Returns a new instance of Path.



9
10
11
12
13
# File 'lib/appmap/config/path.rb', line 9

def initialize(path)
  super(path)

  @mode = :implicit
end

Instance Attribute Details

#modeObject

Returns the value of attribute mode.



7
8
9
# File 'lib/appmap/config/path.rb', line 7

def mode
  @mode
end

Instance Method Details

#<=>(other) ⇒ Object



15
16
17
# File 'lib/appmap/config/path.rb', line 15

def <=>(other)
  path <=> other.path
end

#childrenObject

Automatically determined configurations of child file/package paths.



20
21
22
# File 'lib/appmap/config/path.rb', line 20

def children
  []
end