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
424 425 426 427 |
# File 'lib/delorean/nodes.rb', line 424 def check(context) context.parse_define_var(i.text_value) context.parse_undef_var(i.text_value) end |
#force_def(context) ⇒ Object
439 440 441 |
# File 'lib/delorean/nodes.rb', line 439 def force_def(context) context.parse_define_var(i.text_value) end |
#force_undef(context) ⇒ Object
443 444 445 |
# File 'lib/delorean/nodes.rb', line 443 def force_undef(context) context.parse_undef_var(i.text_value) end |
#rewrite(context) ⇒ Object
429 430 431 432 433 434 435 436 437 |
# File 'lib/delorean/nodes.rb', line 429 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 |