Class: NFS::XDR::FloatNum
- Inherits:
-
Object
- Object
- NFS::XDR::FloatNum
- Defined in:
- lib/nfs/xdr.rb
Instance Method Summary collapse
Instance Method Details
#decode(string) ⇒ Object
73 74 75 |
# File 'lib/nfs/xdr.rb', line 73 def decode(string) string.slice!(0..3).unpack('g')[0] end |
#encode(value) ⇒ Object
69 70 71 |
# File 'lib/nfs/xdr.rb', line 69 def encode(value) [value].pack('g') end |