Class: RBS::AST::Members::AttrReader
- 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
255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/rbs/ast/members.rb', line 255 def to_json(*a) { member: :attr_reader, name: name, type: type, ivar_name: ivar_name, annotations: annotations, location: location, comment: comment }.to_json(*a) end |