class Meshchat::Ui::Command::WhisperLock

Public Class Methods

description() click to toggle source
# File lib/meshchat/ui/command/whisper_lock.rb, line 6
def self.description
  'sets the current chat to to a chosen person'
end

Public Instance Methods

handle() click to toggle source
# File lib/meshchat/ui/command/whisper_lock.rb, line 15
def handle
  NodeFinder.find_by_target(target) do |node|
    Display.info "whisper-locked to #{node.alias_name}##{node.uid}"
    _input_factory.whisper_lock_to(node)
  end
end
target() click to toggle source
# File lib/meshchat/ui/command/whisper_lock.rb, line 10
def target
  # get first arg
  command_args[1]
end