Class: RBS::Inline::AST::Members::RubyPublic

Inherits:
RubyBase
  • Object
show all
Defined in:
lib/rbs/inline/ast/members.rb

Overview

‘public` call without arguments

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#start_line

Constructor Details

#initialize(node) ⇒ RubyPublic

Returns a new instance of RubyPublic.



508
509
510
511
# File 'lib/rbs/inline/ast/members.rb', line 508

def initialize(node) #: void
  super(node.location)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

: Prism::CallNode



505
506
507
# File 'lib/rbs/inline/ast/members.rb', line 505

def node
  @node
end