Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/mac_address.rb

Instance Method Summary collapse

Instance Method Details

#to_mac(options = {}) ⇒ Object



52
53
54
# File 'lib/mac_address.rb', line 52

def to_mac(options = {})
  MacAddress.new(self, options).to_s
end

#valid_mac?(options = {}) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/mac_address.rb', line 56

def valid_mac?(options = {})
  MacAddress.validate(self, options)
end