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

Inherits:
Base
  • 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(state = _ = nil) ⇒ Object



146
147
148
149
150
151
152
153
154
# File 'lib/rbs/ast/members.rb', line 146

def to_json(state = _ = nil)
  {
    member: :instance_variable,
    name: name,
    type: type,
    location: location,
    comment: comment
  }.to_json(state)
end