Class: RetroIDL::ASN::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/retro_idl/asn/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fileName, firstLine, lastLine, firstCol, lastCol) ⇒ Location

Returns a new instance of Location.



3
4
5
6
7
8
9
# File 'lib/retro_idl/asn/location.rb', line 3

def initialize(fileName, firstLine, lastLine, firstCol, lastCol)
    @fileName = fileName
    @firstLine = firstLine
    @lastLine = lastLine
    @firstCol = firstCol
    @lastCol = lastCol
end

Instance Attribute Details

#fileNameObject (readonly)

Returns the value of attribute fileName.



2
3
4
# File 'lib/retro_idl/asn/location.rb', line 2

def fileName
  @fileName
end