aboutsummaryrefslogtreecommitdiffstats
path: root/lib/openssl.rb
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-03-05 15:05:29 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-03-05 15:05:29 +0000
commit3c8abbf103555809d110c21f89de60869a4a6bea (patch)
tree71beab86d7d0e6fc143a6d5c55a25cc2a75e0b6f /lib/openssl.rb
parent59dd8c5696d83aff78c506d2a161ea4ffb404088 (diff)
downloadruby-openssl-history-3c8abbf103555809d110c21f89de60869a4a6bea.tar.gz
* WARNING! All to_str methods are not used any longer (use to_text instead)
* made an aliases to_pem as to_s * more relaxed params checking - everywhere where string was needed it is OK that obj implements to_s method
Diffstat (limited to 'lib/openssl.rb')
-rw-r--r--lib/openssl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openssl.rb b/lib/openssl.rb
index 8baf452..d182220 100644
--- a/lib/openssl.rb
+++ b/lib/openssl.rb
@@ -156,7 +156,7 @@ end # defined? DH
#
# to_h is built-in method
#
- def to_str # "/A=B/C=D/E=F"
+ def to_s # "/A=B/C=D/E=F"
hash = self.to_h
str = ""
hash.keys.each do |key|
@@ -218,7 +218,7 @@ end # defined? DH
#
# to_a is built-in
#
- def to_str # "oid = critical, value"
+ def to_s # "oid = critical, value"
ary = self.to_a
str = ary[0] + " = "
str += "critical, " if ary[2] == true