Class: Yalphabetize::Reader
- Inherits:
-
Object
- Object
- Yalphabetize::Reader
- Defined in:
- lib/yalphabetize/reader.rb
Instance Attribute Summary collapse
-
#interpolations_mapping ⇒ Object
readonly
Returns the value of attribute interpolations_mapping.
Instance Method Summary collapse
-
#initialize(path) ⇒ Reader
constructor
A new instance of Reader.
- #to_ast ⇒ Object
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_mapping ⇒ Object (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_ast ⇒ Object
15 16 17 18 19 |
# File 'lib/yalphabetize/reader.rb', line 15 def to_ast substitute_interpolations transform(stream_node) stream_node end |