lib/plus_codes/open_location_code.rb
# Determines if a string is a valid sequence of Open Location Code(Plus+Codes) characters.
#
# @param code [String] a plus+codes
# @return [TrueClass, FalseClass] true if the code is valid, false otherwise
Determines if a string is a valid sequence of Open Location Code(Plus+Codes) characters.
Determines if a string is a valid sequence of Open Location Code ( Plus + Codes ) characters .
def valid?(code)
      valid_length?(code) &&
      valid_separator?(code) &&
      valid_padding?(code) &&
      valid_character?(code)
    end
def valid? ( code ) valid_length? ( code ) && valid_separator? ( code ) && valid_padding? ( code ) && valid_character? ( code ) end
Determines if a string is a valid sequence of Open Location Code(Plus+Codes) characters.
Determines if a string is a valid sequence of Open Location Code ( Plus + Codes ) characters .
true if the code is valid, false otherwise
true if the code is valid false otherwise
TrueClass, FalseClass
code
None