Method: RBI::BlockParam#initialize
- Defined in:
- lib/rbi/model.rb
#initialize(name, loc: nil, comments: [], &block) ⇒ BlockParam
: (String name, ?loc: Loc?, ?comments: Array) ?{ (BlockParam node) -> void } -> void
631 632 633 634 |
# File 'lib/rbi/model.rb', line 631 def initialize(name, loc: nil, comments: [], &block) super(name, loc: loc, comments: comments) block&.call(self) end |