public Method

Session.method_missing( sym, *args, &block )

Provides convenient access to services that have been registered with the session, such as "process" and "forward".

Usage:

session.forward.local(...)

Source Code

# File net/ssh/session.rb, line 195
def method_missing( sym, *args, &block )
  if args.empty? && block.nil? && @registry[:services].has_key?( sym )
    return @registry[:services][ sym ]
  else
    super
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.