Class: YTLJit::AsmType::StructMember
- Inherits:
-
TypeCommon
- Object
- TypeCommon
- YTLJit::AsmType::StructMember
- Defined in:
- lib/ytljit/struct.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Attributes inherited from TypeCommon
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(type, offset) ⇒ StructMember
constructor
A new instance of StructMember.
- #size ⇒ Object
Constructor Details
#initialize(type, offset) ⇒ StructMember
Returns a new instance of StructMember.
4 5 6 7 |
# File 'lib/ytljit/struct.rb', line 4 def initialize(type, offset) @type = type @offset = offset end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
9 10 11 |
# File 'lib/ytljit/struct.rb', line 9 def offset @offset end |