Module: Yogo::Operation::Restricted::Call

Includes:
ExpectedType
Defined in:
lib/yogo/operation/restricted/call.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/yogo/operation/restricted/call.rb', line 10

def call(*args)
  argument = args.first
  unless argument.kind_of?(expected_type)
    raise(OperationRestrictionError, :argument => argument, :expected_type => expected_type)
  end
  super
end