Class: TExp::EveryDay
Class Method Summary collapse
Instance Method Summary collapse
-
#encode(codes) ⇒ Object
Encode the temporal expression into
codes
. -
#includes?(date) ⇒ Boolean
Is
date
included in the temporal expression. -
#inspect ⇒ Object
Human readable version of the temporal expression.
Methods inherited from Base
#*, #+, #-, #-@, #each, #first_day_of_window, #include?, #last_day_of_window, #reanchor, register_parse_callback, #to_s, #window
Class Method Details
Instance Method Details
#encode(codes) ⇒ Object
Encode the temporal expression into codes
.
16 17 18 |
# File 'lib/texp/every_day.rb', line 16 def encode(codes) codes << encoding_token end |
#includes?(date) ⇒ Boolean
Is date
included in the temporal expression.
6 7 8 |
# File 'lib/texp/every_day.rb', line 6 def includes?(date) true end |
#inspect ⇒ Object
Human readable version of the temporal expression.
11 12 13 |
# File 'lib/texp/every_day.rb', line 11 def inspect "every day" end |