Class: Delorean::ExpGetAttr
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
580 581 582 |
# File 'lib/delorean/nodes.rb', line 580 def check(context, *) v.check(context) end |
#rewrite(context) ⇒ Object
584 585 586 587 588 589 590 591 592 |
# File 'lib/delorean/nodes.rb', line 584 def rewrite(context) attrs = ga.text_value.split('.') # If ga.text_value is not "", then we need to drop the 1st # element since it'll be "". attrs.shift attrs.inject(v.rewrite(context)) { |x, y| "_get_attr(#{x}, '#{y}', _e)" } end |