Class: Code::Type::Sig
- Inherits:
-
Object
- Object
- Code::Type::Sig
- Defined in:
- lib/code/type/sig.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args, object:, &block) ⇒ Sig
constructor
A new instance of Sig.
- #sig ⇒ Object
Constructor Details
#initialize(args, object:, &block) ⇒ Sig
Returns a new instance of Sig.
6 7 8 9 10 |
# File 'lib/code/type/sig.rb', line 6 def initialize(args, object:, &block) @args = args @block = block @object = object end |
Class Method Details
.sig ⇒ Object
12 13 14 |
# File 'lib/code/type/sig.rb', line 12 def self.sig(...) new(...).sig end |
Instance Method Details
#sig ⇒ Object
16 17 18 19 |
# File 'lib/code/type/sig.rb', line 16 def sig check_number_of_arguments! check_types_of_arguments! end |