Class: Gem::SafeMarshal::Elements::Float

Inherits:
Element
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ Float

Returns a new instance of Float.



123
124
125
# File 'lib/rubygems/safe_marshal/elements.rb', line 123

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string.



126
127
128
# File 'lib/rubygems/safe_marshal/elements.rb', line 126

def string
  @string
end