Class: RTunnel::RemoteListenCommand
Constant Summary collapse
- RE =
%r{^([^|]+)\|}
Constants inherited from Command
Command::CLASSES_TO_CODES, Command::CODES_TO_CLASSES
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address) ⇒ RemoteListenCommand
constructor
A new instance of RemoteListenCommand.
- #to_s ⇒ Object
Constructor Details
#initialize(address) ⇒ RemoteListenCommand
Returns a new instance of RemoteListenCommand.
117 118 119 |
# File 'lib/cmds.rb', line 117 def initialize(address) @address = address end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
115 116 117 |
# File 'lib/cmds.rb', line 115 def address @address end |
Class Method Details
.match(data) ⇒ Object
139 140 141 |
# File 'lib/cmds.rb', line 139 def match(data) !! (data =~ RE) end |
Instance Method Details
#to_s ⇒ Object
121 122 123 |
# File 'lib/cmds.rb', line 121 def to_s super + "#{address}|" end |