Class: String
- Inherits:
-
Object
- Object
- String
- 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( = {}) MacAddress.new(self, ).to_s end |
#valid_mac?(options = {}) ⇒ Boolean
56 57 58 |
# File 'lib/mac_address.rb', line 56 def valid_mac?( = {}) MacAddress.validate(self, ) end |