Class: Wardite::F32

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

: Float



32
33
34
# File 'lib/wardite/value.rb', line 32

def value
  @value
end

Instance Method Details

#inspectObject



39
40
41
# File 'lib/wardite/value.rb', line 39

def inspect
  "F32(#{@value})"
end

#packedObject



35
36
37
# File 'lib/wardite/value.rb', line 35

def packed
  [self.value].pack("f")
end