Class: DebugTrace::PrintOptions
- Inherits:
-
Object
- Object
- DebugTrace::PrintOptions
- Defined in:
- lib/debugtrace.rb
Instance Attribute Summary collapse
-
#bytes_limit ⇒ Object
readonly
Returns the value of attribute bytes_limit.
-
#collection_limit ⇒ Object
readonly
Returns the value of attribute collection_limit.
-
#force_reflection ⇒ Object
readonly
Returns the value of attribute force_reflection.
-
#minimum_output_count ⇒ Object
readonly
Returns the value of attribute minimum_output_count.
-
#minimum_output_length ⇒ Object
readonly
Returns the value of attribute minimum_output_length.
-
#output_method ⇒ Object
readonly
Returns the value of attribute output_method.
-
#output_private ⇒ Object
readonly
Returns the value of attribute output_private.
-
#reflection_nest_limit ⇒ Object
readonly
Returns the value of attribute reflection_nest_limit.
-
#string_limit ⇒ Object
readonly
Returns the value of attribute string_limit.
Instance Method Summary collapse
-
#initialize(force_reflection, output_private, output_method, minimum_output_count, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_nest_limit) ⇒ PrintOptions
constructor
A new instance of PrintOptions.
Constructor Details
#initialize(force_reflection, output_private, output_method, minimum_output_count, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_nest_limit) ⇒ PrintOptions
Returns a new instance of PrintOptions.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/debugtrace.rb', line 76 def initialize( force_reflection, output_private, output_method, minimum_output_count, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_nest_limit ) @force_reflection = force_reflection @output_private = output_private @output_method = output_method @minimum_output_count = minimum_output_count == -1 ? DebugTrace.config.minimum_output_count : minimum_output_count @minimum_output_length = minimum_output_length == -1 ? DebugTrace.config.minimum_output_length : minimum_output_length @collection_limit = collection_limit == -1 ? DebugTrace.config.collection_limit : collection_limit @bytes_limit = bytes_limit == -1 ? DebugTrace.config.bytes_limit : bytes_limit @string_limit = string_limit == -1 ? DebugTrace.config.string_limit : string_limit @reflection_nest_limit = reflection_nest_limit == -1 ? DebugTrace.config.reflection_nest_limit : reflection_nest_limit end |
Instance Attribute Details
#bytes_limit ⇒ Object (readonly)
Returns the value of attribute bytes_limit.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def bytes_limit @bytes_limit end |
#collection_limit ⇒ Object (readonly)
Returns the value of attribute collection_limit.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def collection_limit @collection_limit end |
#force_reflection ⇒ Object (readonly)
Returns the value of attribute force_reflection.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def force_reflection @force_reflection end |
#minimum_output_count ⇒ Object (readonly)
Returns the value of attribute minimum_output_count.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def minimum_output_count @minimum_output_count end |
#minimum_output_length ⇒ Object (readonly)
Returns the value of attribute minimum_output_length.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def minimum_output_length @minimum_output_length end |
#output_method ⇒ Object (readonly)
Returns the value of attribute output_method.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def output_method @output_method end |
#output_private ⇒ Object (readonly)
Returns the value of attribute output_private.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def output_private @output_private end |
#reflection_nest_limit ⇒ Object (readonly)
Returns the value of attribute reflection_nest_limit.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def reflection_nest_limit @reflection_nest_limit end |
#string_limit ⇒ Object (readonly)
Returns the value of attribute string_limit.
73 74 75 |
# File 'lib/debugtrace.rb', line 73 def string_limit @string_limit end |