Method: RBI::TStructProp#initialize

Defined in:
lib/rbi/model.rb

#initialize(name, type, default: nil, loc: nil, comments: [], &block) ⇒ TStructProp

: (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array) ?{ (TStructProp node) -> void } -> void



991
992
993
994
# File 'lib/rbi/model.rb', line 991

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