method

visit_assign

Importance_0
v8.0.0 - Show latest stable - 0 notes - Class: VersionedConfig
visit_assign(node) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File tools/rail_inspector/lib/rail_inspector/visitor/framework_default.rb, line 74
            def visit_assign(node)
              assert_framework(node)

              target = SyntaxTree::Formatter.format(nil, node.target)
              value =
                case node.value
                when SyntaxTree::HashLiteral
                  HashToString.new.tap { |v| v.visit(node.value) }.to_s
                when SyntaxTree::StringConcat
                  MultilineToString.new.tap { |v| v.visit(node.value) }.to_s
                else
                  SyntaxTree::Formatter.format(nil, node.value)
                end
              @configs[target] = value
            end
Register or log in to add new notes.