Class: CertificateChecker::CertificateParser
- Inherits:
-
Object
- Object
- CertificateChecker::CertificateParser
- Defined in:
- lib/certificate-checker/certificate_parser.rb
Instance Attribute Summary collapse
-
#certificates ⇒ Object
readonly
Returns the value of attribute certificates.
Instance Method Summary collapse
-
#initialize(filename) ⇒ CertificateParser
constructor
A new instance of CertificateParser.
Constructor Details
#initialize(filename) ⇒ CertificateParser
Returns a new instance of CertificateParser.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/certificate-checker/certificate_parser.rb', line 9 def initialize(filename) @filename = filename @certificates = {} @lineno = 0 @f = File.open(@filename, 'rb') begin read_random_data ensure @f.close end end |
Instance Attribute Details
#certificates ⇒ Object (readonly)
Returns the value of attribute certificates.
7 8 9 |
# File 'lib/certificate-checker/certificate_parser.rb', line 7 def certificates @certificates end |