summaryrefslogtreecommitdiff
path: root/lib/soap/property.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/property.rb')
-rw-r--r--lib/soap/property.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/soap/property.rb b/lib/soap/property.rb
index 882dcc6e28..51f2e82628 100644
--- a/lib/soap/property.rb
+++ b/lib/soap/property.rb
@@ -70,7 +70,7 @@ class Property
LINE_REGEXP = Regexp.new("^#{DEF_REGSRC}$")
def load(stream)
key_prefix = ""
- stream.each_with_index do |line, lineno|
+ stream.lines.each_with_index do |line, lineno|
line.sub!(/\r?\n\z/, '')
case line
when COMMENT_REGEXP