Class: RBS::AST::Members::Public

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

Instance Attribute Summary

Attributes included from LocationOnly

#location

Instance Method Summary collapse

Methods included from LocationOnly

#==, #hash, #initialize

Instance Method Details

#to_json(*a) ⇒ Object



297
298
299
# File 'lib/rbs/ast/members.rb', line 297

def to_json(*a)
  { member: :public, location: location }.to_json(*a)
end