Class: BitClust::Location
Overview
Encapsulates :file and :line. Used by LineStream(above)
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(file, line) ⇒ Location
constructor
A new instance of Location.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(file, line) ⇒ Location
Returns a new instance of Location.
42 43 44 45 |
# File 'lib/bitclust/parseutils.rb', line 42 def initialize(file, line) @file = file @line = line end |