class ERBLint::Linters::ArgumentMappers::Base
def to_args
def to_args args = {} args[:tag] = ":#{@tag.name}" unless self.class::DEFAULT_TAG.nil? || @tag.name == self.class::DEFAULT_TAG @tag.attributes.each do |attribute| attr_name = attribute.name if self.class::ATTRIBUTES.include?(attr_name) args.merge!(attribute_to_args(attribute)) elsif attr_name == "class" args.merge!(map_classes(attribute)) else # Assume the attribute is a system argument. args.merge!(SystemArguments.new(attribute).to_args) end end args end