Method: RBI::TStructConst#initialize
- Defined in:
- lib/rbi/model.rb
#initialize(name, type, default: nil, loc: nil, comments: [], &block) ⇒ TStructConst
: (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array) ?{ (TStructConst node) -> void } -> void
950 951 952 953 |
# File 'lib/rbi/model.rb', line 950 def initialize(name, type, default: nil, loc: nil, comments: [], &block) super(name, type, default: default, loc: loc, comments: comments) block&.call(self) end |