Class: Shellout::DateQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/shellout/date_query.rb

Instance Method Summary collapse

Methods inherited from Query

#io=

Constructor Details

#initializeDateQuery

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

#callObject



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