module ServiceActor::TypeCheckable
Adds `type:` checking to inputs and outputs. Accepts class names or classes that should match an ancestor. Also accepts arrays.
Example:
class ReduceOrderAmount < Actor input :order, type: 'Order' input :amount, type: [Integer, Float] input :bonus_applied, type: [TrueClass FalseClass] end
Public Class Methods
included(base)
click to toggle source
# File lib/service_actor/type_checkable.rb, line 15 def self.included(base) base.prepend(PrependedMethods) end