Class: Chronic::Tag
- Inherits:
-
Object
- Object
- Chronic::Tag
- Defined in:
- lib/chronic/chronic.rb
Overview
Tokens are tagged with subclassed instances of this class when they match specific criteria
Instance Attribute Summary collapse
-
#type ⇒ Object
:nodoc:.
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.
230 231 232 |
# File 'lib/chronic/chronic.rb', line 230 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object
:nodoc:
228 229 230 |
# File 'lib/chronic/chronic.rb', line 228 def type @type end |
Instance Method Details
#start=(s) ⇒ Object
234 235 236 |
# File 'lib/chronic/chronic.rb', line 234 def start=(s) @now = s end |