Skip to content

Commit 9927436

Browse files
Fix Rubocop offenses
We can now anonymously forward blocks in Ruby > 3.1 :)
1 parent 28a8014 commit 9927436

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/faker.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def bothify(string)
6565
letterify(numerify(string))
6666
end
6767

68-
def generate(as_type, &block)
69-
PositionalGenerator.new(as_type, &block).generate
68+
def generate(as_type, &)
69+
PositionalGenerator.new(as_type, &).generate
7070
end
7171

7272
# Given a regular expression, attempt to generate a string
@@ -195,7 +195,7 @@ def flexible(key)
195195
# name:
196196
# girls_name: ["Alice", "Cheryl", "Tatiana"]
197197
# Then you can call Faker::Name.girls_name and it will act like #first_name
198-
def method_missing(mth, *args, &block)
198+
def method_missing(mth, *args, &)
199199
super unless flexible_key
200200

201201
if (translation = translate("faker.#{flexible_key}.#{mth}"))

0 commit comments

Comments
 (0)