Module Origin::Mergeable
In: lib/origin/mergeable.rb

Contains behaviour for merging existing selection with new selection.

Methods

Attributes

strategy  [RW]  @attribute [rw] strategy The name of the current strategy.

Public Instance methods

Instruct the next mergeable call to use intersection.

@example Use intersection on the next call.

  mergeable.intersect.in(field: [ 1, 2, 3 ])

@return [ Mergeable ] The intersect flagged mergeable.

@since 1.0.0

Instruct the next mergeable call to use override.

@example Use override on the next call.

  mergeable.override.in(field: [ 1, 2, 3 ])

@return [ Mergeable ] The override flagged mergeable.

@since 1.0.0

Reset the stratgies to nil, used after cloning.

@example Reset the strategies.

  mergeable.reset_strategies!

@return [ nil ] nil.

@since 1.0.0

Instruct the next mergeable call to use union.

@example Use union on the next call.

  mergeable.union.in(field: [ 1, 2, 3 ])

@return [ Mergeable ] The union flagged mergeable.

@since 1.0.0

[Validate]