# File lib/stringvalidator.rb, line 276 def self.valid?(rule, str) begin self.validate(rule, str) rescue Error return false end return true end