Class: Haxor::Token::Data

Inherits:
Base
  • Object
show all
Defined in:
lib/haxor/token/data.rb

Direct Known Subclasses

Int64

Instance Attribute Summary

Attributes inherited from Base

#absolute_addr

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Data

Returns a new instance of Data.



4
5
6
# File 'lib/haxor/token/data.rb', line 4

def initialize(data)
  @data = data
end

Instance Method Details

#size ⇒ Object



8
9
10
# File 'lib/haxor/token/data.rb', line 8

def size
  @data.size
end

#to_s ⇒ Object



12
13
14
# File 'lib/haxor/token/data.rb', line 12

def to_s
  @data.to_s
end