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 ...@@ -217,14 +217,12 @@ class Enumerator
def inspect def inspect
return "#<#{self.class}: uninitialized>" unless @obj return "#<#{self.class}: uninitialized>" unless @obj
args = ""
if @args && @args.size > 0 if @args && @args.size > 0
args = "(" args = @args.join(", ")
@args.each {|arg| args << "#{arg}, " } "#<#{self.class}: #{@obj}:#{@meth}(#{args})>"
args = args[0, args.size-2] else
args << ")" "#<#{self.class}: #{@obj}:#{@meth}>"
end end
"#<#{self.class}: #{@obj}:#{@meth}#{args}>"
end 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