lib/rdf/xsd/binary.rb
def valid?
      !!Base64.strict_decode64(value.gsub(/\s+/m, ''))
    rescue ArgumentError
      false
    end
##
# Returns `true` if the value adheres to the defined grammar of the
# datatype.
#
# @return [Boolean]
Returns `true` if the value adheres to the defined grammar of the
datatype.
Returns ` true ` if the value adheres to the defined grammar of the datatype .
def valid?
      !!Base64.strict_decode64(value.gsub(/\s+/m, ''))
    rescue ArgumentError
      false
    end
def valid? ! ! Base64 . strict_decode64 ( value . gsub ( / \s + /m , '' ) ) rescue ArgumentError false end
Returns `true` if the value adheres to the defined grammar of the
datatype.
Returns ` true ` if the value adheres to the defined grammar of the datatype .
None
Boolean