Method: StructFu::Int#to_i

Defined in:
lib/packetfu/structfu.rb

#to_iObject

Returns the Int as an Integer.



75
76
77
# File 'lib/packetfu/structfu.rb', line 75

def to_i
  (self.v || self.d).to_i
end