Sha256: 1c8532686b9745173ce11edd7aed0cb79d385a8475d3af87271e0c679762a331

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

module Pre
  module Validators
    module Format
      def valid_format?
        return false unless parsed.respond_to? :domain
        parsed.domain.dot_atom_text.elements.size > 1
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pre-0.0.2 lib/pre/validators/format.rb
pre-0.0.1 lib/pre/validators/format.rb