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.
8 9 10 11 |
# File 'lib/yalphabetize/reader.rb', line 8 def initialize(path) @path = path @interpolations_mapping = {} end |
Instance Attribute Details
#interpolations_mapping ⇒ Object (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_ast ⇒ Object
13 14 15 16 |
# File 'lib/yalphabetize/reader.rb', line 13 def to_ast substitute_interpolations stream_node end |