Sha256: eade776a2ed0b095083a325f559a39010836d1659446ae85e4e2b7e34d715e54
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
module CLIUtils # A Validator to verify whether a Pref answer # is a valid URL. class TestValidator < PrefValidator # Runs the Validator against the answer. # @param [Object] text The "text" to evaluate # @return [String] def validate(text) @is_valid = text.to_s == "bachya" @message = "String did not equal 'bachya': #{ text }" end end end
Version data entries
7 entries across 7 versions & 1 rubygems