Class: Chronic::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/chronic/chronic.rb

Overview

Tokens are tagged with subclassed instances of this class when they match specific criteria

Direct Known Subclasses

Grabber, Ordinal, Pointer, Repeater, Scalar, Separator, TimeZone

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Tag

Returns a new instance of Tag.



284
285
286
# File 'lib/chronic/chronic.rb', line 284

def initialize(type)
	@type = type
end

Instance Attribute Details

#typeObject

:nodoc:



282
283
284
# File 'lib/chronic/chronic.rb', line 282

def type
  @type
end

Instance Method Details

#start=(s) ⇒ Object



288
289
290
# File 'lib/chronic/chronic.rb', line 288

def start=(s)
	@now = s
end