Class: Operations::Inspect

Inherits:
Module
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/operations/inspect.rb

Overview

Configures inspect/pretty_print methods on object.

Instance Method Summary collapse

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