Method: RBI::Module#initialize

Defined in:
lib/rbi/model.rb

#initialize(name, loc: nil, comments: [], &block) ⇒ Module

: (String name, ?loc: Loc?, ?comments: Array) ?{ (Module node) -> void } -> void



187
188
189
190
191
# File 'lib/rbi/model.rb', line 187

def initialize(name, loc: nil, comments: [], &block)
  super(loc: loc, comments: comments) {}
  @name = name
  block&.call(self)
end