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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/object_inspector.rb', line 33

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.



22
23
24
# File 'lib/object_inspector.rb', line 22

def default_scope
  @default_scope
end

#flags_separatorObject

Returns the value of attribute flags_separator.



22
23
24
# File 'lib/object_inspector.rb', line 22

def flags_separator
  @flags_separator
end

#formatter_classObject

Returns the value of attribute formatter_class.



22
23
24
# File 'lib/object_inspector.rb', line 22

def formatter_class
  @formatter_class
end

#info_separatorObject

Returns the value of attribute info_separator.



22
23
24
# File 'lib/object_inspector.rb', line 22

def info_separator
  @info_separator
end

#inspect_method_prefixObject

Returns the value of attribute inspect_method_prefix.



22
23
24
# File 'lib/object_inspector.rb', line 22

def inspect_method_prefix
  @inspect_method_prefix
end

#issues_separatorObject

Returns the value of attribute issues_separator.



22
23
24
# File 'lib/object_inspector.rb', line 22

def issues_separator
  @issues_separator
end

#name_separatorObject

Returns the value of attribute name_separator.



22
23
24
# File 'lib/object_inspector.rb', line 22

def name_separator
  @name_separator
end

#out_of_scope_placeholderObject

Returns the value of attribute out_of_scope_placeholder.



22
23
24
# File 'lib/object_inspector.rb', line 22

def out_of_scope_placeholder
  @out_of_scope_placeholder
end

#presented_object_separatorObject

Returns the value of attribute presented_object_separator.



22
23
24
# File 'lib/object_inspector.rb', line 22

def presented_object_separator
  @presented_object_separator
end

#wild_card_scopeObject

Returns the value of attribute wild_card_scope.



22
23
24
# File 'lib/object_inspector.rb', line 22

def wild_card_scope
  @wild_card_scope
end