Class: XDry::TestFileRef
- Inherits:
-
BaseFileRef
- Object
- BaseFileRef
- XDry::TestFileRef
- Defined in:
- lib/xdry/parsing/pos.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from BaseFileRef
Instance Method Summary collapse
-
#initialize(path, source) ⇒ TestFileRef
constructor
A new instance of TestFileRef.
- #read ⇒ Object
Methods inherited from BaseFileRef
Constructor Details
#initialize(path, source) ⇒ TestFileRef
Returns a new instance of TestFileRef.
40 41 42 43 |
# File 'lib/xdry/parsing/pos.rb', line 40 def initialize path, source super() @path, @source = path, source end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
38 39 40 |
# File 'lib/xdry/parsing/pos.rb', line 38 def path @path end |
Instance Method Details
#read ⇒ Object
45 46 47 |
# File 'lib/xdry/parsing/pos.rb', line 45 def read @source end |