class Precheck::TextRule

Rule types are more or less just marker classes that are intended to communicate what types of things each rule expects to deal with. TextRules deal with checking text values, URLRules will check url specific things like connectivity TextRules expect that text values will be passed to the rule_block, likewise, URLs are expected to be passed to the URLRule rule_block

Public Instance Methods

handle_item?(item) click to toggle source
# File precheck/lib/precheck/rule.rb, line 161
def handle_item?(item)
  item.kind_of?(TextItemToCheck) ? true : false
end