Class: Mutant::Integration::Config Private

Inherits:
Object
  • Object
show all
Includes:
Unparser::Adamantium
Defined in:
lib/mutant/integration.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

DEFAULT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

new(arguments: EMPTY_ARRAY, name: nil)
TRANSFORM =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Transform::Sequence.new(
  steps: [
    Transform::Primitive.new(primitive: Hash),
    Transform::Hash.new(
      optional: [
        Transform::Hash::Key.new(transform: Transform::STRING,       value: 'name'),
        Transform::Hash::Key.new(transform: Transform::STRING_ARRAY, value: 'arguments')
      ],
      required: []
    ),
    Transform::Hash::Symbolize.new,
    Transform::Success.new(block: DEFAULT.method(:with))
  ]
)

Instance Method Summary collapse

Instance Method Details

#merge(other) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



53
54
55
56
57
58
# File 'lib/mutant/integration.rb', line 53

def merge(other)
  self.class.new(
    name:      other.name || name,
    arguments: arguments + other.arguments
  )
end