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
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, options = {}) ⇒ Tag
constructor
type - The Symbol type of this tag.
-
#start=(time) ⇒ Object
time - Set the start Time for this Tag.
Constructor Details
#initialize(type, options = {}) ⇒ Tag
type - The Symbol type of this tag.
9 10 11 12 |
# File 'lib/chronic/tag.rb', line 9 def initialize(type, = {}) @type = type @options = end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/chronic/tag.rb', line 6 def type @type end |
Instance Method Details
#start=(time) ⇒ Object
time - Set the start Time for this Tag.
15 16 17 |
# File 'lib/chronic/tag.rb', line 15 def start=(time) @now = time end |