Class: Yalphabetize::Reader

Inherits:
Object
  • Object
show all
Defined in:
lib/yalphabetize/reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Reader

Returns a new instance of Reader.



8
9
10
11
# File 'lib/yalphabetize/reader.rb', line 8

def initialize(path)
  @path = path
  @interpolations_mapping = {}
end

Instance Attribute Details

#interpolations_mappingObject (readonly)

Returns the value of attribute interpolations_mapping.



18
19
20
# File 'lib/yalphabetize/reader.rb', line 18

def interpolations_mapping
  @interpolations_mapping
end

Instance Method Details

#to_astObject



13
14
15
16
# File 'lib/yalphabetize/reader.rb', line 13

def to_ast
  substitute_interpolations
  stream_node
end