Class: RBS::AST::Members::AttrWriter

Inherits:
Base
  • Object
show all
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

#==, #hash, #initialize

Instance Method Details

#to_json(*a) ⇒ Object



287
288
289
290
291
292
293
294
295
296
297
# File 'lib/rbs/ast/members.rb', line 287

def to_json(*a)
  {
    member: :attr_writer,
    name: name,
    type: type,
    ivar_name: ivar_name,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(*a)
end