Class: Distincter2::D2Config

Inherits:
Object
  • Object
show all
Defined in:
lib/distincter2/config.rb

Overview

Class representing the configuration for Distincter2.

Direct Known Subclasses

D2EmptyConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exclude_paths, version = 'v1') ⇒ D2Config

Initializes a new instance of D2Config.

Parameters:

  • exclude_paths (Array<String>)

    An array of paths to be excluded.

  • version (String) (defaults to: 'v1')

    The version of the configuration. Default is ‘v1’.



12
13
14
15
# File 'lib/distincter2/config.rb', line 12

def initialize(exclude_paths, version = 'v1')
  @exclude_paths = exclude_paths.to_set
  @version = version
end

Instance Attribute Details

#exclude_pathsSet<String>

Accessor for the exclude_paths attribute.

Returns:

  • (Set<String>)

    The set of paths to be excluded.



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

def exclude_paths
  @exclude_paths
end

#versionString

Accessor for the version attribute.

Returns:

  • (String)

    The version of the configuration.



25
26
27
# File 'lib/distincter2/config.rb', line 25

def version
  @version
end