Class: Gem::SafeMarshal::Elements::String
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(str) ⇒ String
constructor
A new instance of String.
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
#str ⇒ Object (readonly)
Returns the value of attribute str.
39 40 41 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 39 def str @str end |