Module: Ronin::Network::Mixins::Mixin

Includes:
Parameters, UI::Output::Helpers
Included in:
Telnet
Defined in:
lib/ronin/network/mixins/mixin.rb

Overview

Since:

  • 0.4.0

Class Method Summary collapse

Instance Method Summary collapse

Methods included from UI::Output::Helpers

format, #print_debug, #print_error, #print_exception, #print_info, #print_warning, #printf, #putc, #puts, #write

Class Method Details

.hostObject

Since:

  • 0.4.0



34
# File 'lib/ronin/network/mixins/mixin.rb', line 34

parameter :host, :type => String

.host=(value) ⇒ Object

Since:

  • 0.4.0



34
# File 'lib/ronin/network/mixins/mixin.rb', line 34

parameter :host, :type => String

.portObject

Since:

  • 0.4.0



36
# File 'lib/ronin/network/mixins/mixin.rb', line 36

parameter :port, :type => Integer

.port=(value) ⇒ Object

Since:

  • 0.4.0



36
# File 'lib/ronin/network/mixins/mixin.rb', line 36

parameter :port, :type => Integer

Instance Method Details

#hostObject

Since:

  • 0.4.0



34
# File 'lib/ronin/network/mixins/mixin.rb', line 34

parameter :host, :type => String

#host=(value) ⇒ Object

Since:

  • 0.4.0



34
# File 'lib/ronin/network/mixins/mixin.rb', line 34

parameter :host, :type => String

#host_portString (protected)

The host/port parameters.

Returns:

  • (String)

    The host/port parameters in String form.

Since:

  • 0.4.0



48
49
50
51
52
53
54
# File 'lib/ronin/network/mixins/mixin.rb', line 48

def host_port
  if self.port
    "#{self.host}:#{self.port}"
  else
    "#{self.host}"
  end
end

#portObject

Since:

  • 0.4.0



36
# File 'lib/ronin/network/mixins/mixin.rb', line 36

parameter :port, :type => Integer

#port=(value) ⇒ Object

Since:

  • 0.4.0



36
# File 'lib/ronin/network/mixins/mixin.rb', line 36

parameter :port, :type => Integer