Class: ObjectTracer::Configuration
- Inherits:
-
Object
- Object
- ObjectTracer::Configuration
- Defined in:
- lib/object_tracer/configuration.rb
Constant Summary collapse
- DEFAULTS =
{ filter_by_paths: [], exclude_by_paths: [], with_trace_to: 50, event_type: :return, hijack_attr_methods: false, track_as_records: false, ignore_private: false, only_private: false }.merge(ObjectTracer::Output::DEFAULT_OPTIONS)
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 |
# File 'lib/object_tracer/configuration.rb', line 14 def initialize @options = {} DEFAULTS.each do |key, value| @options[key] = value end end |
Instance Method Details
#[](key) ⇒ Object
22 23 24 |
# File 'lib/object_tracer/configuration.rb', line 22 def [](key) @options[key] end |
#[]=(key, value) ⇒ Object
26 27 28 |
# File 'lib/object_tracer/configuration.rb', line 26 def []=(key, value) @options[key] = value end |