Sha256: 85fae61100a16c99fc4b9dc589b01dfbfb01d234c93431ae9e75bf55de660dc0

Contents?: true

Size: 171 Bytes

Versions: 70

Compression:

Stored size: 171 Bytes

Contents

# require "eitil_core/mocks/string"

class String

  def self.mock(n=25)
    alphabet = ('a'..'z').to_a
    n.times.map { alphabet.sample * rand(1..10) } * ' '
  end

end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
eitil-2.0.8 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.7 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.6 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.5 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.4 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.3 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.2 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.1 eitil_core/lib/eitil_core/mocks/string.rb
eitil-2.0.0 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.4.1 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.4.0 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.12 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.11 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.10 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.9 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.8 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.7 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.6 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.5 eitil_core/lib/eitil_core/mocks/string.rb
eitil-1.3.4 eitil_core/lib/eitil_core/mocks/string.rb