Class: JavaClass::ClassFile::Constants::ConstantDouble
- 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) ⇒ ConstantDouble
constructor
A new instance of ConstantDouble.
- #to_s ⇒ Object
Constructor Details
#initialize(pool, data, start) ⇒ ConstantDouble
Returns a new instance of ConstantDouble.
84 85 86 87 88 |
# File 'lib/javaclass/classfile/constants/value.rb', line 84 def initialize(pool, data, start) super() silence_unused_warning(pool) @value = get_value(data, start, 9, 2).double end |
Instance Method Details
#dump ⇒ Object
92 93 94 |
# File 'lib/javaclass/classfile/constants/value.rb', line 92 def dump super + 'd;' end |
#to_s ⇒ Object
89 90 91 |
# File 'lib/javaclass/classfile/constants/value.rb', line 89 def to_s @value.to_s.upcase # sprintf('%E',@value) end |