public
Description: Pure Ruby implementation of an SSH (protocol 2) client
Homepage: http://rubyforge.org/projects/net-ssh
Clone URL: git://github.com/jamis/net-ssh.git
Search Repo:
instance_variable_defined? was not available prior to 1.8.6, apparently
jamis (author)
Fri Apr 18 19:58:08 -0700 2008
commit  a4a01eb7c3939b1a34e1e2d2dd233a2b34fe504a
tree    4a3a0c900564b85508be8aedb64feb77139bc061
parent  979e97d10ea179036afe79e60b34d15aac011f1f
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@ module Net; module SSH; module Transport; module HMAC
0
       %w(key_length mac_length digest_class).each do |attribute|
0
         define_method(attribute) do |*v|
0
           # satisfy ruby -w
0
- if !instance_variable_defined?("@#{attribute}")
0
+ if !instance_variables.include?("@#{attribute}")
0
             instance_variable_set("@#{attribute}", nil)
0
           end
0
 

Comments

    No one has commented yet.