Class: Mocktail::Params
- Inherits:
-
T::Struct
- Object
- T::Struct
- Mocktail::Params
- 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
#allowed ⇒ Object
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
14 15 16 |
# File 'lib/mocktail/value/signature.rb', line 14 def rest? !!rest end |