Class: Snippr::SegmentFilter::ValidBetween
- Defined in:
- lib/snippr/segment_filter/valid_between.rb
Instance Method Summary collapse
Methods inherited from Base
filters, inherited, #initialize
Constructor Details
This class inherits a constructor from Snippr::SegmentFilter::Base
Instance Method Details
#active? ⇒ Boolean
5 6 7 8 9 |
# File 'lib/snippr/segment_filter/valid_between.rb', line 5 def active? Snippr::Clock.now.to_s >= valid_from && Snippr::Clock.now.to_s <= valid_until rescue ArgumentError false end |