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

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

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.



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

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

Instance Attribute Details

#locationObject (readonly)

: Prism::Location



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

def location
  @location
end

Instance Method Details

#start_lineObject

: Integer



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

def start_line #: Integer
  location.start_line
end