Class: JavaClass::ClassFile::Constants::ConstantAsciz
- Defined in:
- lib/javaclass/classfile/constants/value.rb
Overview
ZenTest SKIP
Instance Attribute Summary
Attributes inherited from Value
Attributes inherited from Base
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(pool, data, start) ⇒ ConstantAsciz
constructor
A new instance of ConstantAsciz.
Methods inherited from Value
Constructor Details
#initialize(pool, data, start) ⇒ ConstantAsciz
Returns a new instance of ConstantAsciz.
99 100 101 102 103 104 105 106 107 |
# File 'lib/javaclass/classfile/constants/value.rb', line 99 def initialize(pool, data, start) super('Asciz') silence_unused_warning(pool) @tag = data.u1(start) @length = data.u2(start+1) @size = 3 + @length @value = data[start+3..start+3+@length-1] end |
Instance Method Details
#dump ⇒ Object
109 110 111 |
# File 'lib/javaclass/classfile/constants/value.rb', line 109 def dump super + ';' end |