Method: RBI::TypeMember#initialize
- Defined in:
- lib/rbi/model.rb
#initialize(name, value, loc: nil, comments: [], &block) ⇒ TypeMember
: (String name, String value, ?loc: Loc?, ?comments: Array) ?{ (TypeMember node) -> void } -> void
1065 1066 1067 1068 1069 1070 |
# File 'lib/rbi/model.rb', line 1065 def initialize(name, value, loc: nil, comments: [], &block) super(loc: loc, comments: comments) @name = name @value = value block&.call(self) end |