Class: RBS::AST::Members::AttrReader
- Includes:
- _ToJson, Attribute
- Defined in:
- lib/rbs/ast/members.rb,
sig/members.rbs
Instance Attribute Summary
Attributes included from Attribute
#annotations, #comment, #ivar_name, #kind, #location, #name, #type, #visibility
Instance Method Summary collapse
Methods included from Attribute
#==, #hash, #initialize, #update
Methods included from _HashEqual
Instance Method Details
#to_json(state = nil) ⇒ Object
314 315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/rbs/ast/members.rb', line 314 def to_json(state = nil) { member: :attr_reader, name: name, type: type, ivar_name: ivar_name, kind: kind, annotations: annotations, location: location, comment: comment, visibility: visibility }.to_json(state) end |