class Compendium::DateParam
Public Class Methods
new(obj, *)
click to toggle source
Calls superclass method
# File lib/compendium/param_types.rb, line 85 def initialize(obj, *) if obj.respond_to?(:to_date) obj = obj.to_date else obj = Date.parse(obj) rescue nil end super obj end
Public Instance Methods
date?()
click to toggle source
# File lib/compendium/param_types.rb, line 95 def date? true end