Class: RBS::AST::Members::Prepend

Inherits:
Base
  • Object
show all
Includes:
Mixin
Defined in:
lib/rbs/ast/members.rb

Instance Attribute Summary

Attributes included from Mixin

#annotations, #args, #comment, #location, #name

Instance Method Summary collapse

Methods included from Mixin

#==, #eql?, #hash, #initialize

Instance Method Details

#to_json(state = _ = nil) ⇒ Object



246
247
248
249
250
251
252
253
254
255
# File 'lib/rbs/ast/members.rb', line 246

def to_json(state = _ = nil)
  {
    member: :prepend,
    name: name,
    args: args,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(state)
end