Class: TermUtils::FF::Config

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

Overview

Represents a query configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



31
32
33
34
35
36
# File 'lib/term_utils/ff/config.rb', line 31

def initialize
  @ignore_list = []
  @min_depth = nil
  @max_depth = nil
  @sorted = false
end

Instance Attribute Details

#ignore_listArray<Regexp>

Returns:

  • (Array<Regexp>)


24
25
26
# File 'lib/term_utils/ff/config.rb', line 24

def ignore_list
  @ignore_list
end

#max_depthInteger

Returns:

  • (Integer)


28
29
30
# File 'lib/term_utils/ff/config.rb', line 28

def max_depth
  @max_depth
end

#min_depthInteger

Returns:

  • (Integer)


26
27
28
# File 'lib/term_utils/ff/config.rb', line 26

def min_depth
  @min_depth
end

#sortedBoolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/term_utils/ff/config.rb', line 30

def sorted
  @sorted
end

Instance Method Details

#initialize_copy(other) ⇒ Object



37
38
39
40
# File 'lib/term_utils/ff/config.rb', line 37

def initialize_copy(other)
  @ignore_list = other.ignore_list.dup
  super
end