class FoodCritic::Api::AttFilter

XPath custom function

def is_att_type(value)

def is_att_type(value)
  return [] unless value.respond_to?(:select)
  value.select do |n|
    %w{
      automatic_attrs
      default
      default!
      default_unless
      force_default
      force_default!
      force_override
      force_override!
      node
      normal
      normal!
      normal_unless
      override
      override!
      override_unless
      set
      set_unless
    }.include?(n.to_s)
  end
end