Sha256: 4dbd1dffa67da867fc36a056f7b2c98e1eac70b93be2ea140b8f6de0aa2d9c21
Contents?: true
Size: 394 Bytes
Versions: 3
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module Cistern class Mock def self.not_implemented(method = '') fail NotImplementedError, method ? "The call '#{method}' is not implemented" : '' end def self.random_hex(length) rand(('f' * length).to_i(16)).to_s(16).rjust(length, '0') end def self.random_numbers(length) rand(('9' * length).to_i).to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cistern-2.10.0 | lib/cistern/mock.rb |
cistern-2.8.2 | lib/cistern/mock.rb |
cistern-2.8.1 | lib/cistern/mock.rb |