From bef1b15621d129eb3c9d33def146d6a84da19b0b Mon Sep 17 00:00:00 2001 From: dogisgreat Date: Fri, 3 Jan 2025 19:48:08 -0800 Subject: [PATCH] fix: allow usage as formatter --- lib/syntax_tree/rbs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/syntax_tree/rbs.rb b/lib/syntax_tree/rbs.rb index cf309a3..ad88927 100644 --- a/lib/syntax_tree/rbs.rb +++ b/lib/syntax_tree/rbs.rb @@ -41,7 +41,7 @@ def force_parens? end class << self - def format(source, maxwidth = 80) + def format(source, maxwidth = 80, _options = {}) formatter = Formatter.new(source, [], maxwidth) parse(source).format(formatter)