Class: Chronic::Tag
- Inherits:
-
Object
- Object
- Chronic::Tag
- Defined in:
- lib/chronic/tag.rb
Overview
Tokens are tagged with subclassed instances of this class when they match specific criteria
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(type) ⇒ Tag
constructor
A new instance of Tag.
- #start=(s) ⇒ Object
Constructor Details
#initialize(type) ⇒ Tag
Returns a new instance of Tag.
10 11 12 |
# File 'lib/chronic/tag.rb', line 10 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Symbol
7 8 9 |
# File 'lib/chronic/tag.rb', line 7 def type @type end |
Instance Method Details
#start=(s) ⇒ Object
15 16 17 |
# File 'lib/chronic/tag.rb', line 15 def start=(s) @now = s end |