Class: Pione::Util::SourcePosition

Inherits:
StructX
  • Object
show all
Defined in:
lib/pione/util/positionable.rb

Overview

SourcePosition represents source position model of PIONE and defines its string format.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.unknownObject



41
42
43
# File 'lib/pione/util/positionable.rb', line 41

def unknown
  @unknown ||= UnknownSourcePosition.new
end

Instance Method Details

#formatObject



51
52
53
54
# File 'lib/pione/util/positionable.rb', line 51

def format
  args = [package_name, filename, line, column]
  "(package %s, file %s, line %s, column %s)" % args
end