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

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



216
217
218
219
220
221
222
223
224
225
# File 'lib/rbs/ast/members.rb', line 216

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