class RailwayOperation::StepsArray

Ensures that the array containing surrounds are of valid type

Public Class Methods

new(*args, **options) click to toggle source
# File lib/railway_operation/steps_array.rb, line 6
def initialize(*args, **options)
  types = [Symbol, Proc, String, Array]

  super(
    *args,
    ensure_type_is: types,
    error_message: 'Invalid operation surround declaration, must' \
      "be of type #{types}",
    **options
  )
end