Class: Shellout::DateQuery
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ DateQuery
constructor
A new instance of DateQuery.
Methods inherited from Query
Constructor Details
#initialize ⇒ DateQuery
Returns a new instance of DateQuery.
8 9 10 |
# File 'lib/shellout/date_query.rb', line 8 def initialize super("Date (?)", "today") end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 |
# File 'lib/shellout/date_query.rb', line 12 def call loop do date = super return date if date end end |