Class: RBS::Inline::AST::Members::Base

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

Overview

@rbs! type ruby = RubyDef | RubyAlias | RubyMixin | RubyAttr | RubyPublic | RubyPrivate

type rbs = RBSIvar | RBSEmbedded

type t = ruby | rbs

Direct Known Subclasses

RBSBase, RubyBase

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Base

Returns a new instance of Base.

Parameters:

  • location (Prism::Location)


18
19
20
# File 'lib/rbs/inline/ast/members.rb', line 18

def initialize(location) #: void
  @location = location
end

Instance Attribute Details

#locationPrism::Location (readonly)

: Prism::Location

Returns:

  • (Prism::Location)


15
16
17
# File 'lib/rbs/inline/ast/members.rb', line 15

def location
  @location
end

Instance Method Details

#start_lineInteger

: Integer

Returns:

  • (Integer)


22
23
24
# File 'lib/rbs/inline/ast/members.rb', line 22

def start_line #: Integer
  location.start_line
end