method

visit_command

visit_command(node)
public

No documentation available.

# File tools/rail_inspector/lib/rail_inspector/visitor/attribute.rb, line 26
                   def visit_command(node)
        attr_access = node.message.value
        return unless ATTRIBUTE_METHODS.include?(attr_access)

        full_namespace = @namespace_stack.join("::")

        @attribute_map[full_namespace] ||= {}
        @attribute_map[full_namespace][attr_access] ||= Set.new

        attributes = node.arguments.parts.map { |p| p.value.value }

        @attribute_map[full_namespace][attr_access].merge(attributes)
      end