class MacWifi::CommandLineInterface::OpenResources

Public Instance Methods

find_by_code(code) click to toggle source
# File lib/mac-wifi/command_line_interface.rb, line 24
def find_by_code(code)
  detect { |resource| resource.code == code }
end
help_string() click to toggle source

Ex: “('ipc' (IP Chicken), 'ipw' (What is My IP), 'spe' (Speed Test))”

# File lib/mac-wifi/command_line_interface.rb, line 29
def help_string
  map(&:help_string).join(', ')
end