lib/rsaml/subject_locality.rb
def validate
      unless address =~ /^(\d{1,3}\.){3}\d{1,3}$/
        raise ValidationError, "Invalid address"
      end
    end
# Raise an error if the subject locality is structurally invalid.
Raise an error if the subject locality is structurally invalid.
Raise an error if the subject locality is structurally invalid .
def validate
      unless address =~ /^(\d{1,3}\.){3}\d{1,3}$/
        raise ValidationError, "Invalid address"
      end
    end
def validate unless address =~ / ^( \d {1,3} \. ){3} \d {1,3}$ / raise ValidationError , "Invalid address" end end
Raise an error if the subject locality is structurally invalid.
Raise an error if the subject locality is structurally invalid .