Class: Code::Type::Sig
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 15 |
# File 'lib/code/type/sig.rb', line 12 def self.sig(...) new(...).sig nil end |
Instance Method Details
#sig ⇒ Object
17 18 19 20 21 |
# File 'lib/code/type/sig.rb', line 17 def sig check_number_of_arguments! check_types_of_arguments! nil end |