Class: Delorean::ExpGetAttr
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Instance Method Details
#check(context) ⇒ Object
367 368 369 |
# File 'lib/delorean/nodes.rb', line 367 def check(context, *) v.check(context) end |
#rewrite(context) ⇒ Object
371 372 373 374 375 376 377 378 379 |
# File 'lib/delorean/nodes.rb', line 371 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 |