should not use String#<< which is defined in mruby-string-ext; use Array#join instead; ref #2239

parent b584eaf6
......@@ -217,14 +217,12 @@ class Enumerator
def inspect
return "#<#{self.class}: uninitialized>" unless @obj
args = ""
if @args && @args.size > 0
args = "("
@args.each {|arg| args << "#{arg}, " }
args = args[0, args.size-2]
args << ")"
args = @args.join(", ")
"#<#{self.class}: #{@obj}:#{@meth}(#{args})>"
else
"#<#{self.class}: #{@obj}:#{@meth}>"
end
"#<#{self.class}: #{@obj}:#{@meth}#{args}>"
end
##
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment