Class: Mocktail::Params

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mocktail/value/signature.rb,
lib/mocktail/sorbet/mocktail/value/signature.rb

Instance Method Summary collapse

Instance Method Details

#allowedObject



10
11
12
# File 'lib/mocktail/value/signature.rb', line 10

def allowed
  all.select { |name| required.include?(name) || optional.include?(name) }
end

#rest?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/mocktail/value/signature.rb', line 14

def rest?
  !!rest
end