Class: WifiWand::CommandLineInterface::OpenResources
- Inherits:
-
Array
- Object
- Array
- WifiWand::CommandLineInterface::OpenResources
- Defined in:
- lib/wifi-wand/command_line_interface.rb
Instance Method Summary collapse
- #find_by_code(code) ⇒ Object
-
#help_string ⇒ Object
Ex: “(‘ipc’ (IP Chicken), ‘ipw’ (What is My IP), ‘spe’ (Speed Test))”.
Instance Method Details
#find_by_code(code) ⇒ Object
29 30 31 |
# File 'lib/wifi-wand/command_line_interface.rb', line 29 def find_by_code(code) detect { |resource| resource.code == code } end |
#help_string ⇒ Object
Ex: “(‘ipc’ (IP Chicken), ‘ipw’ (What is My IP), ‘spe’ (Speed Test))”
34 35 36 |
# File 'lib/wifi-wand/command_line_interface.rb', line 34 def help_string map(&:help_string).join(', ') end |