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.
-
#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, 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, minimum_output_count, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_nest_limit) ⇒ PrintOptions
Returns a new instance of PrintOptions.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/debugtrace.rb', line 72 def initialize( force_reflection, minimum_output_count, minimum_output_length, collection_limit, bytes_limit, string_limit, reflection_nest_limit ) @force_reflection = force_reflection @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.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def bytes_limit @bytes_limit end |
#collection_limit ⇒ Object (readonly)
Returns the value of attribute collection_limit.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def collection_limit @collection_limit end |
#force_reflection ⇒ Object (readonly)
Returns the value of attribute force_reflection.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def force_reflection @force_reflection end |
#minimum_output_count ⇒ Object (readonly)
Returns the value of attribute minimum_output_count.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def minimum_output_count @minimum_output_count end |
#minimum_output_length ⇒ Object (readonly)
Returns the value of attribute minimum_output_length.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def minimum_output_length @minimum_output_length end |
#reflection_nest_limit ⇒ Object (readonly)
Returns the value of attribute reflection_nest_limit.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def reflection_nest_limit @reflection_nest_limit end |
#string_limit ⇒ Object (readonly)
Returns the value of attribute string_limit.
67 68 69 |
# File 'lib/debugtrace.rb', line 67 def string_limit @string_limit end |