Skip to content

Commit b4c2bfe

Browse files
author
Austin Ziegler
committed
Cleaning up the Net::BER core extension docs.
1 parent 64bcdd0 commit b4c2bfe

File tree

7 files changed

+32
-31
lines changed

7 files changed

+32
-31
lines changed

lib/net/ber/core_ext.rb

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
1-
# NET::BER
2-
# Mixes ASN.1/BER convenience methods into several standard classes. Also
3-
# provides BER parsing functionality.
4-
#
5-
#--
6-
# Copyright (C) 2006 by Francis Cianfrocca and other contributors. All
7-
# Rights Reserved.
8-
#
9-
# Gmail: garbagecat10
10-
#
11-
# This program is free software; you can redistribute it and/or modify
12-
# it under the terms of the GNU General Public License as published by
13-
# the Free Software Foundation; either version 2 of the License, or
14-
# (at your option) any later version.
15-
#
16-
# This program is distributed in the hope that it will be useful,
17-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
# GNU General Public License for more details.
20-
#
21-
# You should have received a copy of the GNU General Public License
22-
# along with this program; if not, write to the Free Software
23-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24-
#++
25-
261
require 'net/ber/ber_parser'
2+
# :stopdoc:
273
class IO
284
include Net::BER::BERParser
295
end
@@ -37,36 +13,49 @@ class OpenSSL::SSL::SSLSocket
3713
include Net::BER::BERParser
3814
end
3915
end
16+
# :startdoc:
4017

41-
module Net::BER::Extensions; end
18+
module Net::BER::Extensions # :nodoc:
19+
end
4220

4321
require 'net/ber/core_ext/string'
22+
# :stopdoc:
4423
class String
4524
include Net::BER::BERParser
4625
include Net::BER::Extensions::String
4726
end
4827

4928
require 'net/ber/core_ext/array'
50-
class Array
29+
# :stopdoc:
30+
class Array
5131
include Net::BER::Extensions::Array
5232
end
33+
# :startdoc:
5334

5435
require 'net/ber/core_ext/bignum'
55-
class Bignum
36+
# :stopdoc:
37+
class Bignum
5638
include Net::BER::Extensions::Bignum
5739
end
40+
# :startdoc:
5841

5942
require 'net/ber/core_ext/fixnum'
60-
class Fixnum
43+
# :stopdoc:
44+
class Fixnum
6145
include Net::BER::Extensions::Fixnum
6246
end
47+
# :startdoc:
6348

6449
require 'net/ber/core_ext/true_class'
65-
class TrueClass
50+
# :stopdoc:
51+
class TrueClass
6652
include Net::BER::Extensions::TrueClass
6753
end
54+
# :startdoc:
6855

6956
require 'net/ber/core_ext/false_class'
70-
class FalseClass
57+
# :stopdoc:
58+
class FalseClass
7159
include Net::BER::Extensions::FalseClass
7260
end
61+
# :startdoc:

lib/net/ber/core_ext/array.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##
2+
# BER extensions to the Array class.
13
module Net::BER::Extensions::Array
24
##
35
# Converts an Array to a BER sequence. All values in the Array are

lib/net/ber/core_ext/bignum.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##
2+
# BER extensions to the Bignum class.
13
module Net::BER::Extensions::Bignum
24
##
35
# Converts a Bignum to an uncompressed BER integer.

lib/net/ber/core_ext/false_class.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##
2+
# BER extensions to +false+.
13
module Net::BER::Extensions::FalseClass
24
##
35
# Converts +false+ to the BER wireline representation of +false+.

lib/net/ber/core_ext/fixnum.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##
2+
# Ber extensions to the Fixnum class.
13
module Net::BER::Extensions::Fixnum
24
##
35
# Converts the fixnum to BER format.

lib/net/ber/core_ext/string.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require 'stringio'
22

3+
##
4+
# BER extensions to the String class.
35
module Net::BER::Extensions::String
46
##
57
# Converts a string to a BER string. Universal octet-strings are tagged

lib/net/ber/core_ext/true_class.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
##
2+
# BER extensions to +true+.
13
module Net::BER::Extensions::TrueClass
24
##
35
# Converts +true+ to the BER wireline representation of +true+.

0 commit comments

Comments
 (0)