Class: RBS::Inline::AST::Members::Base
- Inherits:
-
Object
- Object
- RBS::Inline::AST::Members::Base
- 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
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: Prism::Location.
Instance Method Summary collapse
-
#initialize(location) ⇒ Base
constructor
A new instance of Base.
-
#start_line ⇒ Object
: Integer.
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
#location ⇒ Object (readonly)
: Prism::Location
15 16 17 |
# File 'lib/rbs/inline/ast/members.rb', line 15 def location @location end |
Instance Method Details
#start_line ⇒ Object
: Integer
22 23 24 |
# File 'lib/rbs/inline/ast/members.rb', line 22 def start_line #: Integer location.start_line end |