Class: Recurring::DateLanguage

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

Overview

A wrapper for Schedule which allows its arguments to be designated in a block. _Under Construction_

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frequencyObject (readonly)

Returns the value of attribute frequency.



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

def frequency
  @frequency
end

Class Method Details

.tell(&block) ⇒ Object



7
8
9
10
11
# File 'lib/date_language.rb', line 7

def tell &block
  x = self.new
  x.instance_eval &block
  x
end

Instance Method Details

#every(frequency = 1, unit = nil, options = {}) ⇒ Object



16
17
18
# File 'lib/date_language.rb', line 16

def every(frequency=1, unit=nil, options={})
  @frequency = frequency
end

#times(string) ⇒ Object



20
21
# File 'lib/date_language.rb', line 20

def times string
end