Module: CertMunger

Included in:
String
Defined in:
lib/cert_munger/formatter.rb,
lib/cert_munger/version.rb

Overview

CertMunger accepts an input string and attempts to return a valid X509 formatted certificate.

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Enables include CertMunger to also extend class methods



12
13
14
# File 'lib/cert_munger/formatter.rb', line 12

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#to_cert(raw_cert) ⇒ Object

Instance variable accessor for CertMunger#to_cert



17
18
19
# File 'lib/cert_munger/formatter.rb', line 17

def to_cert(raw_cert)
  self.class.send(:to_cert, raw_cert)
end