lib/code/object/string.rb in code-ruby-0.9.1 vs lib/code/object/string.rb in code-ruby-0.9.2
- old
+ new
@@ -4,9 +4,10 @@
class Object
class String < Object
attr_reader :raw
def initialize(string)
+ string = string.raw if string.is_a?(String)
@raw = string.to_s
end
def self.name
"String"