aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/lib/openssl/bn.rb
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-13 08:15:48 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-13 08:15:48 +0000
commit33b63fcf93d2116e9e9aa9b4fd9ef91bcaad9b05 (patch)
tree02404f3dc46c5ab276c34dbc0995fe5261e47dbe /ext/openssl/lib/openssl/bn.rb
parent2019f34bc9c9230f4c74febb5e4fa5200fb7cdd6 (diff)
downloadruby-33b63fcf93d2116e9e9aa9b4fd9ef91bcaad9b05.tar.gz
* ext/openssl/lib/openssl/*.rb: [DOC] Document the following:
- Integer#to_bn - OpenSSL::Buffering module - Document deprecated OpenSSL::Digest::Digest compatibility class - OpenSSL::Config These changes were based on a patch by @vbatts via GH-436 https://github.com/ruby/ruby/pull/436 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib/openssl/bn.rb')
-rw-r--r--ext/openssl/lib/openssl/bn.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/lib/openssl/bn.rb b/ext/openssl/lib/openssl/bn.rb
index db722438e4..0e19c20d34 100644
--- a/ext/openssl/lib/openssl/bn.rb
+++ b/ext/openssl/lib/openssl/bn.rb
@@ -28,6 +28,9 @@ end # OpenSSL
# Add double dispatch to Integer
#
class Integer
+ # Casts an Integer as an OpenSSL::BN
+ #
+ # See `man bn` for more info.
def to_bn
OpenSSL::BN::new(self)
end