Class: XDry::TestFileRef

Inherits:
BaseFileRef show all
Defined in:
lib/xdry/parsing/pos.rb

Instance Attribute Summary collapse

Attributes inherited from BaseFileRef

#positions

Instance Method Summary collapse

Methods inherited from BaseFileRef

#add_pos!, #fixup_positions!

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

#pathObject (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

#readObject



45
46
47
# File 'lib/xdry/parsing/pos.rb', line 45

def read
  @source
end