Skip to content

Commit 804a83a

Browse files
committed
Fix: [error] Unexpected positional argument
1 parent b3c822b commit 804a83a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ruby/sig/generated/src/application.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Application
7676
# @rbs day: String
7777
# @rbs month: String
7878
# @rbs return: void
79-
def export_template: (String directory, String index, ?String day) -> void
79+
def export_template: (?directory: String, ?index: String, ?day: String, ?month: String) -> void
8080

8181
# @rbs month: String
8282
# @rbs return: void

ruby/src/application.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def run
6969
day = sprintf('%02d', d)
7070
if unit == 'd'
7171
next if is_weekend?(i, d)
72-
export_template(directory, index, day, month)
72+
export_template(directory:, index:, day:, month:)
7373
else
7474
next unless is_monday?(i, d)
75-
export_template(directory, index, day, month)
75+
export_template(directory:, index:, day:, month:)
7676
end
7777
}
7878
when 'm'
79-
export_template(directory, index, month)
79+
export_template(directory:, index:, month:)
8080
end
8181
}
8282
end
@@ -170,7 +170,7 @@ def body(date)
170170
# @rbs day: String
171171
# @rbs month: String
172172
# @rbs return: void
173-
def export_template(directory, index, day = '', month)
173+
def export_template(directory: '', index: '', day: '', month: '')
174174
date = []
175175
date << "#{day} " unless day.empty?
176176
date << "#{month} #{year}"

0 commit comments

Comments
 (0)