Class: WifiWand::Platforms::Selection::Mac

Inherits:
Base
  • Object
show all
Defined in:
lib/wifi_wand/platforms/selection/mac.rb

Instance Attribute Summary

Attributes inherited from Base

#display_name, #id

Instance Method Summary collapse

Constructor Details

#initializeMac

Returns a new instance of Mac.



11
# File 'lib/wifi_wand/platforms/selection/mac.rb', line 11

def initialize = super(:mac, 'macOS')

Instance Method Details

#create_model(options) ⇒ Object



15
16
17
18
# File 'lib/wifi_wand/platforms/selection/mac.rb', line 15

def create_model(options)
  require_relative '../mac/model'
  WifiWand::Platforms::Mac::Model.create_model(options)
end

#current_os_is_this_os?Boolean

Returns:

  • (Boolean)


13
# File 'lib/wifi_wand/platforms/selection/mac.rb', line 13

def current_os_is_this_os? = /darwin/.match?(RbConfig::CONFIG['host_os'])