class Chronic::Tag

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

Attributes

type[RW]

@return [Symbol]

Public Class Methods

new(type) click to toggle source

@param [Symbol] type

# File lib/chronic/tag.rb, line 10
def initialize(type)
  @type = type
end

Public Instance Methods

start=(s) click to toggle source

@param [Time] s Set the start timestamp for this Tag

# File lib/chronic/tag.rb, line 15
def start=(s)
  @now = s
end