Sha256: f84aa8889a2d69bb9eb8822b841ba619d99e6498080d2575ff2cf122bd87a67d
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require "date" module Stig module Generators module Date extend self DEFAULT_INTERVAL = ::Date.new..::Date.today # Public: Generates a random Date. # # range - An interval Range (default: Date.new..Date.today). # # Returns a Date. def random(range = DEFAULT_INTERVAL) rand(range) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stig-0.1.0 | lib/stig/generators/date.rb |