Class: ObjectInspector::Configuration

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

Overview

ObjectInspector::Configuration stores the default configuration options for the ObjectInspector gem. Modification of attributes is possible at any time, and values will persist for the duration of the running process.

:reek:TooManyInstanceVariables

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/object_inspector.rb', line 39

def initialize
  @formatter_class = TemplatingFormatter
  @inspect_method_prefix = "inspect"
  @default_scope = Scope.new(:self)
  @wild_card_scope = "all"
  @out_of_scope_placeholder = "*"
  @presented_object_separator = " #{[0x21E8].pack("U")} "
  @name_separator = " - "
  @flags_separator = " / "
  @issues_separator = " | "
  @info_separator = " | "
end

Instance Attribute Details

#default_scopeObject

Returns the value of attribute default_scope.



28
29
30
# File 'lib/object_inspector.rb', line 28

def default_scope
  @default_scope
end

#flags_separatorObject

Returns the value of attribute flags_separator.



28
29
30
# File 'lib/object_inspector.rb', line 28

def flags_separator
  @flags_separator
end

#formatter_classObject

Returns the value of attribute formatter_class.



28
29
30
# File 'lib/object_inspector.rb', line 28

def formatter_class
  @formatter_class
end

#info_separatorObject

Returns the value of attribute info_separator.



28
29
30
# File 'lib/object_inspector.rb', line 28

def info_separator
  @info_separator
end

#inspect_method_prefixObject

Returns the value of attribute inspect_method_prefix.



28
29
30
# File 'lib/object_inspector.rb', line 28

def inspect_method_prefix
  @inspect_method_prefix
end

#issues_separatorObject

Returns the value of attribute issues_separator.



28
29
30
# File 'lib/object_inspector.rb', line 28

def issues_separator
  @issues_separator
end

#name_separatorObject

Returns the value of attribute name_separator.



28
29
30
# File 'lib/object_inspector.rb', line 28

def name_separator
  @name_separator
end

#out_of_scope_placeholderObject

Returns the value of attribute out_of_scope_placeholder.



28
29
30
# File 'lib/object_inspector.rb', line 28

def out_of_scope_placeholder
  @out_of_scope_placeholder
end

#presented_object_separatorObject

Returns the value of attribute presented_object_separator.



28
29
30
# File 'lib/object_inspector.rb', line 28

def presented_object_separator
  @presented_object_separator
end

#wild_card_scopeObject

Returns the value of attribute wild_card_scope.



28
29
30
# File 'lib/object_inspector.rb', line 28

def wild_card_scope
  @wild_card_scope
end