Class: Parser::Checker
- Inherits:
-
Object
- Object
- Parser::Checker
- Defined in:
- lib/parser/checker.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(datetime) ⇒ Checker
constructor
A new instance of Checker.
- #unusual? ⇒ Boolean
Constructor Details
#initialize(datetime) ⇒ Checker
Returns a new instance of Checker.
9 10 11 |
# File 'lib/parser/checker.rb', line 9 def initialize(datetime) @datetime = datetime end |
Class Method Details
.unusual?(datetime) ⇒ Boolean
5 6 7 |
# File 'lib/parser/checker.rb', line 5 def self.unusual?(datetime) new(datetime).unusual? end |
Instance Method Details
#unusual? ⇒ Boolean
13 14 15 16 |
# File 'lib/parser/checker.rb', line 13 def unusual? return true if weekend? || before? || after? false end |