Class: Gem::SafeMarshal::Elements::String

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ String

Returns a new instance of String.



35
36
37
# File 'lib/rubygems/safe_marshal/elements.rb', line 35

def initialize(str)
  @str = str
end

Instance Attribute Details

#strObject (readonly)

Returns the value of attribute str.



39
40
41
# File 'lib/rubygems/safe_marshal/elements.rb', line 39

def str
  @str
end