Class: Wardite::I64

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

: Integer



19
20
21
# File 'lib/wardite/value.rb', line 19

def value
  @value
end

Instance Method Details

#inspectObject



26
27
28
# File 'lib/wardite/value.rb', line 26

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

#packedObject



22
23
24
# File 'lib/wardite/value.rb', line 22

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