Class: RBS::AST::Members::AttrAccessor
- Includes:
- Attribute
- Defined in:
- lib/rbs/ast/members.rb
Instance Attribute Summary
Attributes included from Attribute
#annotations, #comment, #ivar_name, #location, #name, #type
Instance Method Summary collapse
Methods included from Attribute
Instance Method Details
#to_json(*a) ⇒ Object
266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/rbs/ast/members.rb', line 266 def to_json(*a) { member: :attr_accessor, name: name, type: type, ivar_name: ivar_name, annotations: annotations, location: location, comment: comment }.to_json(*a) end |