Class: PrintOptions
- Inherits:
-
Object
- Object
- PrintOptions
- Defined in:
- lib/debugtrace/print_options.rb
Overview
print_options.rb © 2023 Masato Kokubo Hold output option values.
Instance Method Summary collapse
-
#initialize(force_reflection, output_private, output_method, collection_limit, string_limit, bytes_limit, reflection_nest_limit) ⇒ PrintOptions
constructor
Initializes this object.
Constructor Details
#initialize(force_reflection, output_private, output_method, collection_limit, string_limit, bytes_limit, reflection_nest_limit) ⇒ PrintOptions
Initializes this object.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/debugtrace/print_options.rb', line 13 def initialize( force_reflection, output_private, output_method, collection_limit, string_limit, bytes_limit, reflection_nest_limit) @force_reflection = force_reflection @output_private = output_private @output_method = output_method @collection_limit = collection_limit == -1 ? @config.collection_limit : collection_limit @string_limit = string_limit == -1 ? @config.string_limit : string_limit @bytes_limit = bytes_limit == -1 ? @config.bytes_limit : bytes_limit @reflection_nest_limit = reflection_nest_limit == -1 ? @config.reflection_nest_limit : reflection_nest_limit end |