Class: Chronic::Definitions

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

Overview

SpanDefinitions subclasses return definitions constructed by Handler instances (see handler.rb) SpanDefinitions subclasses follow a <Type> + Definitions naming pattern Types of Definitions are collected in Dictionaries (see dictionary.rb)

Direct Known Subclasses

SpanDefinitions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Definitions

Returns a new instance of Definitions.



10
11
12
# File 'lib/chronic/definition.rb', line 10

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/chronic/definition.rb', line 8

def options
  @options
end

Instance Method Details

#definitionsObject



14
15
16
# File 'lib/chronic/definition.rb', line 14

def definitions
  raise "definitions are set in subclasses of #{self.class}"
end