Class: WifiWand::MacOs
- Defined in:
- lib/wifi-wand/os/mac_os.rb
Instance Attribute Summary
Attributes inherited from BaseOs
Instance Method Summary collapse
- #create_model(options) ⇒ Object
- #current_os_is_this_os? ⇒ Boolean
-
#initialize ⇒ MacOs
constructor
A new instance of MacOs.
Constructor Details
#initialize ⇒ MacOs
Returns a new instance of MacOs.
7 8 9 |
# File 'lib/wifi-wand/os/mac_os.rb', line 7 def initialize() super(:mac, 'Mac OS') end |
Instance Method Details
#create_model(options) ⇒ Object
15 16 17 18 |
# File 'lib/wifi-wand/os/mac_os.rb', line 15 def create_model() require_relative '../models/mac_os_model' MacOsModel.new() end |
#current_os_is_this_os? ⇒ Boolean
11 12 13 |
# File 'lib/wifi-wand/os/mac_os.rb', line 11 def current_os_is_this_os? !! /darwin/.match(RbConfig::CONFIG["host_os"]) end |