Class: RandomString

Inherits:
String
  • Object
show all
Defined in:
lib/random_string.rb

Instance Method Summary collapse

Constructor Details

#initialize(length = 40) ⇒ RandomString

Returns a new instance of RandomString.



2
3
4
# File 'lib/random_string.rb', line 2

def initialize(length = 40)
  super(new_random_string(length))
end