Module: Ronin::Exploits::Metadata::DefaultPort::ClassMethods
- Defined in:
- lib/ronin/exploits/metadata/default_port.rb
Overview
Class-methods.
Instance Method Summary collapse
-
#default_port(new_default_port = nil) ⇒ Integer?
Gets or sets the exploit's default port.
Instance Method Details
#default_port(new_default_port = nil) ⇒ Integer?
Gets or sets the exploit's default port.
60 61 62 63 64 65 66 67 68 |
# File 'lib/ronin/exploits/metadata/default_port.rb', line 60 def default_port(new_default_port=nil) if new_default_port @default_port = new_default_port else @default_port ||= if superclass.kind_of?(ClassMethods) superclass.default_port end end end |