Permalink
Browse files

Add missing(?) return in REXML::Text#value to prevent frozen TypeError.

  • Loading branch information...
Brandon Mitchell
Brandon Mitchell committed May 31, 2011
1 parent 2ff8349 commit e622be70448dd06972c12891439151647e0a0598
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rexml/text.rb
View
@@ -165,7 +165,7 @@ def inspect
# u = Text.new( "sean russell", false, nil, true )
# u.value #-> "sean russell"
def value
- @unnormalized if @unnormalized
+ return @unnormalized if @unnormalized
doctype = nil
if @parent
doc = @parent.document

0 comments on commit e622be7

Please sign in to comment.