method

parse_openssl

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: Name
parse_openssl(str, template=OBJECT_TYPE_TEMPLATE) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/openssl/lib/openssl/x509.rb, line 146
        def parse_openssl(str, template=OBJECT_TYPE_TEMPLATE)
          if str.start_with?("/")
            # /A=B/C=D format
            ary = str[1..-1].split("/").map { |i| i.split("=", 2) }
          else
            # Comma-separated
            ary = str.split(",").map { |i| i.strip.split("=", 2) }
          end
          self.new(ary, template)
        end
Register or log in to add new notes.