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, #kind, #location, #name, #type

Instance Method Summary collapse

Methods included from Attribute

#==, #hash, #initialize, #update

Instance Method Details

#to_json(state = _ = nil) ⇒ Object



300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/rbs/ast/members.rb', line 300

def to_json(state = _ = nil)
  {
    member: :attr_writer,
    name: name,
    type: type,
    ivar_name: ivar_name,
    kind: kind,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(state)
end