Class: FoodCritic::Api::AttFilter
- Inherits:
-
Object
- Object
- FoodCritic::Api::AttFilter
- Defined in:
- lib/foodcritic/api.rb
Overview
XPath custom function
Instance Method Summary collapse
Instance Method Details
#is_att_type(value) ⇒ Object
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 |
# File 'lib/foodcritic/api.rb', line 586 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 |