Class: Chronic::Definitions
- Inherits:
-
Object
- Object
- Chronic::Definitions
- 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
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #definitions ⇒ Object
-
#initialize(options = {}) ⇒ Definitions
constructor
A new instance of Definitions.
Constructor Details
#initialize(options = {}) ⇒ Definitions
Returns a new instance of Definitions.
10 11 12 |
# File 'lib/chronic/definition.rb', line 10 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/chronic/definition.rb', line 8 def @options end |
Instance Method Details
#definitions ⇒ Object
14 15 16 |
# File 'lib/chronic/definition.rb', line 14 def definitions raise "definitions are set in subclasses of #{self.class}" end |