Class: JavaClass::ClassFile::Constants::ConstantFloat
- 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) ⇒ ConstantFloat
constructor
A new instance of ConstantFloat.
- #to_s ⇒ Object
Constructor Details
#initialize(pool, data, start) ⇒ ConstantFloat
Returns a new instance of ConstantFloat.
59 60 61 62 63 |
# File 'lib/javaclass/classfile/constants/value.rb', line 59 def initialize(pool, data, start) super() silence_unused_warning(pool) @value = get_value(data, start, 5).single end |
Instance Method Details
#dump ⇒ Object
67 68 69 |
# File 'lib/javaclass/classfile/constants/value.rb', line 67 def dump super + 'f;' end |
#to_s ⇒ Object
64 65 66 |
# File 'lib/javaclass/classfile/constants/value.rb', line 64 def to_s super.upcase # sprintf('%E',@value) end |