Class: Holdify::Source
- Inherits:
-
Object
- Object
- Holdify::Source
- Defined in:
- lib/holdify/source.rb
Overview
Represents the current state of the source file
Instance Method Summary collapse
-
#initialize(path) ⇒ Source
constructor
A new instance of Source.
- #lines(xxh) ⇒ Object
- #xxh(lineno) ⇒ Object
Constructor Details
#initialize(path) ⇒ Source
Returns a new instance of Source.
8 |
# File 'lib/holdify/source.rb', line 8 def initialize(path) = (@line_xxh, @xxh_lines = parse(path)) |
Instance Method Details
#lines(xxh) ⇒ Object
12 |
# File 'lib/holdify/source.rb', line 12 def lines(xxh) = @xxh_lines[xxh] |
#xxh(lineno) ⇒ Object
10 |
# File 'lib/holdify/source.rb', line 10 def xxh(lineno) = @line_xxh[lineno] |