Module: Steep::AST::Annotation::Located

Included in:
Dynamic, Implements, Named, Typed
Defined in:
lib/steep/ast/annotation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/steep/ast/annotation.rb', line 5

def location
  @location
end

Instance Method Details

#lineObject



7
8
9
# File 'lib/steep/ast/annotation.rb', line 7

def line
  location&.start_line
end