Class: RubyVM::AbstractSyntaxTree::Location
Overview
Location instances are created by Node#locations.
This class is MRI specific.
Instance Method Summary
- 
    
      #first_column  ⇒ Integer 
    
    The column number in the source code where this AST’s text began. 
- 
    
      #first_lineno  ⇒ Integer 
    
    The line number in the source code where this AST’s text began. 
- 
    
      #inspect  ⇒ String 
    
    Returns debugging information about this location as a string. 
- 
    
      #last_column  ⇒ Integer 
    
    The column number in the source code where this AST’s text ended. 
- 
    
      #last_lineno  ⇒ Integer 
    
    The line number in the source code where this AST’s text ended. 
Instance Method Details
#first_column ⇒ Integer
The column number in the source code where this AST’s text began.
# File 'ast.rb', line 304
def first_column Primitive.ast_location_first_column end
#first_lineno ⇒ Integer
The line number in the source code where this AST’s text began.
# File 'ast.rb', line 296
def first_lineno Primitive.ast_location_first_lineno end
#inspect ⇒ String
Returns debugging information about this location as a string.
# File 'ast.rb', line 328
def inspect Primitive.ast_location_inspect end
#last_column ⇒ Integer
The column number in the source code where this AST’s text ended.
# File 'ast.rb', line 320
def last_column Primitive.ast_location_last_column end
#last_lineno ⇒ Integer
The line number in the source code where this AST’s text ended.
# File 'ast.rb', line 312
def last_lineno Primitive.ast_location_last_lineno end