File tree Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module Proto
5
5
module Kerberos
6
6
module CredentialCache
7
7
class Element
8
+
8
9
def self . attr_accessor ( *vars )
9
10
@attributes ||= [ ]
10
11
@attributes . concat vars
@@ -34,11 +35,12 @@ def attributes
34
35
self . class . attributes
35
36
end
36
37
37
- # Encodes the Rex::Proto::Kerberos::CredentialCache::Element into an String
38
+ # Encodes the Rex::Proto::Kerberos::CredentialCache::Element into an String. This
39
+ # method has been designed to be overridden by subclasses.
38
40
#
39
- # @return [String ]
41
+ # @raise [NoMethodError ]
40
42
def encode
41
- ' '
43
+ raise :: NoMethodError , 'Method designed to be overridden '
42
44
end
43
45
end
44
46
end
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ def self.attr_accessor(*vars)
17
17
super ( *vars )
18
18
end
19
19
20
+ # Retrieves the element class fields
21
+ #
22
+ # @return [Array]
20
23
def self . attributes
21
24
@attributes
22
25
end
@@ -35,16 +38,27 @@ def initialize(options = {})
35
38
end
36
39
end
37
40
41
+ # Retrieves the element instance fields
42
+ #
43
+ # @return [Array]
38
44
def attributes
39
45
self . class . attributes
40
46
end
41
47
48
+ # Decodes the Rex::Proto::Kerberos::Model::Element from the input. This
49
+ # method has been designed to be overridden by subclasses.
50
+ #
51
+ # @raise [NoMethodError]
42
52
def decode ( input )
43
- self
53
+ raise :: NoMethodError , 'Method designed to be overridden'
44
54
end
45
55
56
+ # Encodes the Rex::Proto::Kerberos::Model::Element into an ASN.1 String. This
57
+ # method has been designed to be overridden by subclasses.
58
+ #
59
+ # @raise [NoMethodError]
46
60
def encode
47
- ' '
61
+ raise :: NoMethodError , 'Method designed to be overridden '
48
62
end
49
63
end
50
64
end
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ def self.attr_accessor(*vars)
15
15
super ( *vars )
16
16
end
17
17
18
+ # Retrieves the element class fields
19
+ #
20
+ # @return [Array]
18
21
def self . attributes
19
22
@attributes
20
23
end
@@ -28,12 +31,19 @@ def initialize(options = {})
28
31
end
29
32
end
30
33
34
+ # Retrieves the element instance fields
35
+ #
36
+ # @return [Array]
31
37
def attributes
32
38
self . class . attributes
33
39
end
34
40
41
+ # Encodes the Rex::Proto::Kerberos::Pac::Element into an String. This
42
+ # method has been designed to be overridden by subclasses.
43
+ #
44
+ # @raise [NoMethodError]
35
45
def encode
36
- ' '
46
+ raise :: NoMethodError , 'Method designed to be overridden '
37
47
end
38
48
end
39
49
end
You can’t perform that action at this time.
0 commit comments