Class Chronic::Handler
In: lib/chronic/handler.rb
Parent: Object

Methods

==   invoke   match   new  

Attributes

handler_method  [R]  @return [Symbol] The method which handles this list of patterns.
  This method should exist inside the {Handlers} module
pattern  [R]  @return [Array] A list of patterns

Public Class methods

@param [Array] pattern A list of patterns to match tokens against @param [Symbol] handler_method The method to be invoked when patterns

  are matched. This method should exist inside the {Handlers} module

Public Instance methods

@param [Handler] The handler to compare @return [Boolean] True if these handlers match

@param [Array] tokens @param [Hash] definitions @return [Boolean] @see Chronic.tokens_to_span

[Validate]