Class: RBS::AST::Members::Include

Inherits:
Object
  • 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(*a) ⇒ Object



155
156
157
158
159
160
161
162
163
164
# File 'lib/rbs/ast/members.rb', line 155

def to_json(*a)
  {
    member: :include,
    name: name,
    args: args,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(*a)
end