Method: RBI::Protected#initialize

Defined in:
lib/rbi/model.rb

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

: (?loc: Loc?, ?comments: Array) ?{ (Protected node) -> void } -> void



755
756
757
758
# File 'lib/rbi/model.rb', line 755

def initialize(loc: nil, comments: [], &block)
  super(:protected, loc: loc, comments: comments)
  block&.call(self)
end