Class: Faker::String

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/string.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.random(legacy_length = NOT_GIVEN, length: 32) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/faker/default/string.rb', line 6

def random(legacy_length = NOT_GIVEN, length: 32)
  warn_for_deprecated_arguments do |keywords|
    keywords << :length if legacy_length != NOT_GIVEN
  end

  utf8string select_a length
end