lib/ronin/network/telnet.rb in ronin-support-0.1.0 vs lib/ronin/network/telnet.rb in ronin-support-0.2.0.rc1
- old
+ new
@@ -36,72 +36,88 @@
#
# @return [Integer]
# The default Ronin Telnet port.
#
+ # @api public
+ #
def Telnet.default_port
@default_port ||= DEFAULT_PORT
end
#
# Sets the default Ronin Telnet port.
#
# @param [Integer] port
# The new default Ronin Telnet port.
#
+ # @api public
+ #
def Telnet.default_port=(port)
@default_port = port
end
#
# @return [Regexp]
# The default Ronin Telnet prompt pattern.
#
+ # @api public
+ #
def Telnet.default_prompt
@default_prompt ||= DEFAULT_PROMPT
end
#
# Sets the default Ronin Telnet prompt pattern.
#
# @param [Regexp] prompt
# The new default Ronin Telnet prompt pattern.
#
+ # @api public
+ #
def Telnet.default_prompt=(prompt)
@default_prompt = prompt
end
#
# @return [Integer]
# The default Ronin Telnet timeout.
#
+ # @api public
+ #
def Telnet.default_timeout
@default_timeout ||= DEFAULT_TIMEOUT
end
#
# Sets the default Ronin Telnet timeout.
#
# @param [Integer] timeout
# The new default Ronin Telnet timeout.
#
+ # @api public
+ #
def Telnet.default_timeout=(timeout)
@default_timeout = timeout
end
#
# @return [Telnet, IO, nil]
# The Ronin Telnet proxy.
#
+ # @api public
+ #
def Telnet.proxy
@proxy ||= nil
end
#
# Sets the Ronin Telnet proxy.
#
# @param [Telnet, IO, nil] new_proxy
# The new Ronin Telnet proxy.
+ #
+ # @api public
#
def Telnet.proxy=(new_proxy)
@proxy = new_proxy
end
end