Top Level Namespace
Defined Under Namespace
Modules: DateValidation
Instance Method Summary collapse
Instance Method Details
#test_date(yyyy, mm, dd) ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/date_validation.rb', line 25 def test_date(yyyy, mm, dd) begin @mydate = Date.new(yyyy, mm, dd) return true rescue ArgumentError return false end end |