Class: Delorean::BlockParameter
Direct Known Subclasses
Instance Method Summary collapse
- #check(context) ⇒ Object
- #force_def(context) ⇒ Object
- #force_undef(context) ⇒ Object
- #rewrite(context) ⇒ Object
Instance Method Details
#check(context) ⇒ Object
455 456 457 458 |
# File 'lib/delorean/nodes.rb', line 455 def check(context) context.parse_define_var(i.text_value) context.parse_undef_var(i.text_value) end |
#force_def(context) ⇒ Object
470 471 472 |
# File 'lib/delorean/nodes.rb', line 470 def force_def(context) context.parse_define_var(i.text_value) end |
#force_undef(context) ⇒ Object
474 475 476 |
# File 'lib/delorean/nodes.rb', line 474 def force_undef(context) context.parse_undef_var(i.text_value) end |
#rewrite(context) ⇒ Object
460 461 462 463 464 465 466 467 468 |
# File 'lib/delorean/nodes.rb', line 460 def rewrite(context) a_name = i.text_value expr = defined?(e) ? e.rewrite(context) : '' expr = expr.strip return "#{a_name}#{POST}" if expr.empty? "#{a_name}#{POST} = #{expr}" end |