Class: Pione::Util::SourcePosition
- Inherits:
-
StructX
- Object
- StructX
- Pione::Util::SourcePosition
- 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
.unknown ⇒ Object
41 42 43 |
# File 'lib/pione/util/positionable.rb', line 41 def unknown @unknown ||= UnknownSourcePosition.new end |
Instance Method Details
#format ⇒ Object
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 |