Class: String

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

Class Method Summary collapse

Class Method Details

.test_dataObject



360
361
362
363
# File 'lib/builtin_contracts.rb', line 360

def self.test_data
  # send a random string
  ('a'..'z').to_a.shuffle[0, 10].join
end

.testable?Boolean

Returns:

  • (Boolean)


356
357
358
# File 'lib/builtin_contracts.rb', line 356

def self.testable?
  true
end