class ObjectInspector::Configuration
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.
Attributes
default_scope[R]
flags_separator[R]
formatter_class[R]
info_separator[R]
inspect_method_prefix[R]
issues_separator[R]
name_separator[R]
out_of_scope_placeholder[R]
presented_object_separator[R]
wild_card_scope[R]
Public Class Methods
new()
click to toggle source
# 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
Public Instance Methods
default_scope=(value)
click to toggle source
# File lib/object_inspector.rb, line 58 def default_scope=(value) @default_scope = Conversions.Scope(value) end
flags_separator=(value)
click to toggle source
# File lib/object_inspector.rb, line 78 def flags_separator=(value) @flags_separator = value.to_s.freeze end
formatter_class=(value)
click to toggle source
# File lib/object_inspector.rb, line 46 def formatter_class=(value) unless value.is_a?(Class) raise TypeError, "Formatter must be a Class constant" end @formatter_class = value end
info_separator=(value)
click to toggle source
# File lib/object_inspector.rb, line 86 def info_separator=(value) @info_separator = value.to_s.freeze end
inspect_method_prefix=(value)
click to toggle source
# File lib/object_inspector.rb, line 54 def inspect_method_prefix=(value) @inspect_method_prefix = value.to_s.freeze end
issues_separator=(value)
click to toggle source
# File lib/object_inspector.rb, line 82 def issues_separator=(value) @issues_separator = value.to_s.freeze end
name_separator=(value)
click to toggle source
# File lib/object_inspector.rb, line 74 def name_separator=(value) @name_separator = value.to_s.freeze end
out_of_scope_placeholder=(value)
click to toggle source
# File lib/object_inspector.rb, line 66 def out_of_scope_placeholder=(value) @out_of_scope_placeholder = value.to_s.freeze end
presented_object_separator=(value)
click to toggle source
# File lib/object_inspector.rb, line 70 def presented_object_separator=(value) @presented_object_separator = value.to_s.freeze end
wild_card_scope=(value)
click to toggle source
# File lib/object_inspector.rb, line 62 def wild_card_scope=(value) @wild_card_scope = value.to_s.freeze end