Class: DebugTrace::PrintOptions
- Inherits:
-
Object
- Object
- DebugTrace::PrintOptions
- Defined in:
- lib/debugtrace.rb
Overview
Contains options to pass to the print method.
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.
-
#minimum_output_length ⇒ Object
readonly
Returns the value of attribute minimum_output_length.
-
#minimum_output_size ⇒ Object
readonly
Returns the value of attribute minimum_output_size.
-
#reflection ⇒ Object
readonly
Returns the value of attribute reflection.
-
#reflection_limit ⇒ Object
readonly
Returns the value of attribute reflection_limit.
-
#string_limit ⇒ Object
readonly
Returns the value of attribute string_limit.
Instance Method Summary collapse
-
#initialize(reflection, minimum_output_size, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_limit) ⇒ PrintOptions
constructor
Initializes this object.
Constructor Details
#initialize(reflection, minimum_output_size, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_limit) ⇒ PrintOptions
Initializes this object.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/debugtrace.rb', line 88 def initialize( reflection, minimum_output_size, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_limit ) @reflection = reflection @minimum_output_size = minimum_output_size == -1 ? DebugTrace.config.minimum_output_size : minimum_output_size @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_limit = reflection_limit == -1 ? DebugTrace.config.reflection_limit : reflection_limit end |
Instance Attribute Details
#bytes_limit ⇒ Object (readonly)
Returns the value of attribute bytes_limit.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def bytes_limit @bytes_limit end |
#collection_limit ⇒ Object (readonly)
Returns the value of attribute collection_limit.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def collection_limit @collection_limit end |
#minimum_output_length ⇒ Object (readonly)
Returns the value of attribute minimum_output_length.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def minimum_output_length @minimum_output_length end |
#minimum_output_size ⇒ Object (readonly)
Returns the value of attribute minimum_output_size.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def minimum_output_size @minimum_output_size end |
#reflection ⇒ Object (readonly)
Returns the value of attribute reflection.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def reflection @reflection end |
#reflection_limit ⇒ Object (readonly)
Returns the value of attribute reflection_limit.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def reflection_limit @reflection_limit end |
#string_limit ⇒ Object (readonly)
Returns the value of attribute string_limit.
76 77 78 |
# File 'lib/debugtrace.rb', line 76 def string_limit @string_limit end |