Class: Delorean::ExpGetAttr
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
611 612 613 |
# File 'lib/delorean/nodes.rb', line 611 def check(context, *) v.check(context) end |
#rewrite(context) ⇒ Object
615 616 617 618 619 620 621 622 623 |
# File 'lib/delorean/nodes.rb', line 615 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 |