Class: RBS::AST::Members::InstanceVariable

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

Instance Attribute Summary

Attributes included from Var

#comment, #location, #name, #type

Instance Method Summary collapse

Methods included from Var

#==, #hash, #initialize

Instance Method Details

#to_json(*a) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/rbs/ast/members.rb', line 85

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