Flowdock
method

expand_pair

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: RFC2253DN
expand_pair(str) 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 84
        def expand_pair(str)
          return nil unless str
          return str.gsub(Pair){
            pair = $&
            case pair.size
            when 2 then pair[1,1]
            when 3 then Integer("0x#{pair[1,2]}").chr
            else raise OpenSSL::X509::NameError, "invalid pair: #{str}"
            end
          }
        end
Register or log in to add new notes.