lib/steep/errors.rb in steep-0.9.0 vs lib/steep/errors.rb in steep-0.10.0
- old
+ new
@@ -516,11 +516,11 @@
super(node: node)
@unexpected_keywords = unexpected_keywords
end
def to_s
- "#{location_to_str}: UnexpectedKeyword: #{unexpected_keywords.join(", ")}"
+ "#{location_to_str}: UnexpectedKeyword: #{unexpected_keywords.to_a.join(", ")}"
end
end
class MissingKeyword < Base
attr_reader :missing_keywords
@@ -529,10 +529,10 @@
super(node: node)
@missing_keywords = missing_keywords
end
def to_s
- "#{location_to_str}: MissingKeyword: #{missing_keywords.join(", ")}"
+ "#{location_to_str}: MissingKeyword: #{missing_keywords.to_a.join(", ")}"
end
end
end
end