Class: Fake
- Inherits:
-
Faker::Base
- Object
- Faker::Base
- Fake
- Includes:
- Faker::FakerMethodsDelegator
- Defined in:
- lib/fake.rb
Class Method Summary collapse
Methods included from Faker::FakerMethodsDelegator
faker_method_modules, faker_methods_hash, included
Class Method Details
.password_of_length(size = 12) ⇒ Object
64 65 66 67 68 |
# File 'lib/fake.rb', line 64 def password_of_length(size=12) words = [] words << word until words.inject(0){|len, a| len+a.size} >= size words.join[0,size] end |