Class: Operations::Inspect
- Inherits:
-
Module
- Object
- Module
- Operations::Inspect
- Extended by:
- Dry::Initializer
- Defined in:
- lib/operations/inspect.rb
Overview
Configures inspect/pretty_print methods on object.
Instance Method Summary collapse
-
#initialize(*attributes, **kwargs) ⇒ Inspect
constructor
A new instance of Inspect.
Constructor Details
#initialize(*attributes, **kwargs) ⇒ Inspect
Returns a new instance of Inspect.
10 11 12 13 14 |
# File 'lib/operations/inspect.rb', line 10 def initialize(*attributes, **kwargs) super(attributes.flatten(1), kwargs) define_pretty_print(@attributes, @value_methods) end |