123456789_123456789_123456789_123456789_123456789_

Class: RubyVM::AbstractSyntaxTree::Location

Relationships & Source Files
Inherits: Object
Defined in: ast.rb,
ast.c

Overview

Location instances are created by RubyVM::AbstractSyntaxTree#locations.

This class is MRI specific.

Instance Method Summary

Instance Method Details

#first_columnInteger

The column number in the source code where this AST’s text began.

[ GitHub ]

  
# File 'ast.rb', line 304

def first_column
  Primitive.ast_location_first_column
end

#first_linenoInteger

The line number in the source code where this AST’s text began.

[ GitHub ]

  
# File 'ast.rb', line 296

def first_lineno
  Primitive.ast_location_first_lineno
end

#inspectString

Returns debugging information about this location as a string.

[ GitHub ]

  
# File 'ast.rb', line 328

def inspect
  Primitive.ast_location_inspect
end

#last_columnInteger

The column number in the source code where this AST’s text ended.

[ GitHub ]

  
# File 'ast.rb', line 320

def last_column
  Primitive.ast_location_last_column
end

#last_linenoInteger

The line number in the source code where this AST’s text ended.

[ GitHub ]

  
# File 'ast.rb', line 312

def last_lineno
  Primitive.ast_location_last_lineno
end