Method: Pio::Mac#to_i

Defined in:
lib/pio/mac.rb

#to_iInteger

Returns an Ethernet address in its numeric presentation.

Examples:

Mac.new("11:22:33:44:55:66").to_i #=> 18838586676582

Returns:

  • (Integer)

50
51
52
# File 'lib/pio/mac.rb', line 50

def to_i
  @value
end