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.



10
11
12
13
# File 'lib/yalphabetize/reader.rb', line 10

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

Instance Attribute Details

#interpolations_mappingObject (readonly)

Returns the value of attribute interpolations_mapping.



21
22
23
# File 'lib/yalphabetize/reader.rb', line 21

def interpolations_mapping
  @interpolations_mapping
end

Instance Method Details

#to_astObject



15
16
17
18
19
# File 'lib/yalphabetize/reader.rb', line 15

def to_ast
  substitute_interpolations
  transform(stream_node)
  stream_node
end