Method: StyleScript::RangeNode#compile_variables

Defined in:
lib/style_script/nodes.rb

#compile_variables(o) ⇒ Object



457
458
459
460
461
462
# File 'lib/style_script/nodes.rb', line 457

def compile_variables(o)
  @indent = o[:indent]
  @from_var, @to_var = o[:scope].free_variable, o[:scope].free_variable
  from_val,  to_val  = @from.compile(o), @to.compile(o)
  write("#{@from_var} = #{from_val}; #{@to_var} = #{to_val};\n#{idt}")
end