Class: YTLJit::AsmType::Scalar
- Inherits:
-
TypeCommon
- Object
- TypeCommon
- YTLJit::AsmType::Scalar
- Defined in:
- lib/ytljit/type.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Attributes inherited from TypeCommon
Instance Method Summary collapse
-
#initialize(size, align = 4, kind = :int) ⇒ Scalar
constructor
A new instance of Scalar.
Constructor Details
#initialize(size, align = 4, kind = :int) ⇒ Scalar
Returns a new instance of Scalar.
17 18 19 20 21 |
# File 'lib/ytljit/type.rb', line 17 def initialize(size, align = 4, kind = :int) @size = size @alignment = align @kind = kind end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
23 24 25 |
# File 'lib/ytljit/type.rb', line 23 def kind @kind end |