We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a8014 commit 9927436Copy full SHA for 9927436
lib/faker.rb
@@ -65,8 +65,8 @@ def bothify(string)
65
letterify(numerify(string))
66
end
67
68
- def generate(as_type, &block)
69
- PositionalGenerator.new(as_type, &block).generate
+ def generate(as_type, &)
+ PositionalGenerator.new(as_type, &).generate
70
71
72
# Given a regular expression, attempt to generate a string
@@ -195,7 +195,7 @@ def flexible(key)
195
# name:
196
# girls_name: ["Alice", "Cheryl", "Tatiana"]
197
# Then you can call Faker::Name.girls_name and it will act like #first_name
198
- def method_missing(mth, *args, &block)
+ def method_missing(mth, *args, &)
199
super unless flexible_key
200
201
if (translation = translate("faker.#{flexible_key}.#{mth}"))
0 commit comments