Class: Holdify::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/holdify/source.rb

Overview

Represents the current state of the source file

Instance Method Summary collapse

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]