Class: Mo2tex::ExcludeDate
- Inherits:
-
ExcludeBase
- Object
- ExcludeBase
- Mo2tex::ExcludeDate
- Defined in:
- lib/mo2tex/exclude_date.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Attributes inherited from ExcludeBase
Instance Method Summary collapse
- #does_it_skip?(d) ⇒ Boolean
-
#initialize(d, sd, ed) ⇒ ExcludeDate
constructor
A new instance of ExcludeDate.
Methods inherited from ExcludeBase
Constructor Details
#initialize(d, sd, ed) ⇒ ExcludeDate
Returns a new instance of ExcludeDate.
38 39 40 41 42 |
# File 'lib/mo2tex/exclude_date.rb', line 38 def initialize(d, sd, ed) super(sd, ed) @date = DateTime.parse(d.to_s) raise DateOutOfRange, self.date.to_s unless within_period?(self.date) end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
36 37 38 |
# File 'lib/mo2tex/exclude_date.rb', line 36 def date @date end |
Instance Method Details
#does_it_skip?(d) ⇒ Boolean
44 45 46 |
# File 'lib/mo2tex/exclude_date.rb', line 44 def does_it_skip?(d) return d == self.date end |