Method: Rubex::AST::Expression::Colon2#recursive_scoping_generation

Defined in:
lib/rubex/ast/expression/binary/colon2.rb

#recursive_scoping_generation(lhs, rhs, c_str) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/rubex/ast/expression/binary/colon2.rb', line 20

def recursive_scoping_generation lhs, rhs, c_str
  if rhs.is_a?(Colon2)
    recursive_scoping_generation rhs.lhs, rhs.rhs, "rb_const_get(#{c_str}, rb_intern(\"#{rhs.lhs}\"))"
  else
    "rb_const_get(#{c_str}, rb_intern(\"#{rhs}\"))"
  end
end