Class: JavaClass::Constants::ConstantFloat
- Inherits:
-
Value
- Object
- Base
- Value
- JavaClass::Constants::ConstantFloat
show all
- Defined in:
- lib/javaclass/constants/value.rb
Instance Attribute Summary
Attributes inherited from Value
#value
Attributes inherited from Base
#name, #size, #slots, #tag
Instance Method Summary
collapse
Constructor Details
#initialize(pool, data, start) ⇒ ConstantFloat
Returns a new instance of ConstantFloat.
58
59
60
61
62
|
# File 'lib/javaclass/constants/value.rb', line 58
def initialize(pool, data, start)
super()
silence_unused_warning(pool)
@value = get_value(data, start, 5).single
end
|
Instance Method Details
#dump ⇒ Object
66
67
68
|
# File 'lib/javaclass/constants/value.rb', line 66
def dump
super + 'f;'
end
|
#to_s ⇒ Object
63
64
65
|
# File 'lib/javaclass/constants/value.rb', line 63
def to_s
super.upcase end
|