Skip to content

Commit 1650242

Browse files
committed
Fix: [warning] The method cannot be called with a block
1 parent deb80f8 commit 1650242

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ruby/sig/generated/src/application.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ class Application
8080

8181
# @rbs month: String
8282
# @rbs return: void
83-
def create_templates: (String month) -> void
83+
def create_templates: (String month) ?{ (?) -> untyped } -> void
8484
end

ruby/src/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def export_template(directory: '', index: '', day: '', month: '')
183183

184184
# @rbs month: String
185185
# @rbs return: void
186-
def create_templates(month)
186+
def create_templates(month, &block)
187187
1.upto(31).each { |d|
188188
case month
189189
when 'February'

0 commit comments

Comments
 (0)