diff options
Diffstat (limited to 'lib/hosts.rb')
-rw-r--r-- | lib/hosts.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hosts.rb b/lib/hosts.rb index 1a0fc27..1917b93 100644 --- a/lib/hosts.rb +++ b/lib/hosts.rb @@ -11,8 +11,8 @@ module SSHConfig @hosts += morehosts.hosts end - def host(name) - @hosts << Host.new(name, &Proc.new) + def host(name, &blk) + @hosts << Host.new(name, &blk) end def to_s |