koyomi 0.0.4 → 0.0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -5
- data/lib/koyomi/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -19,6 +19,7 @@ Or install it yourself as:
|
|
19
19
|
## Usage
|
20
20
|
|
21
21
|
Handling calendar by this gem.
|
22
|
+
|
22
23
|
(japanese) カレンダーを取り扱うための gem です。
|
23
24
|
|
24
25
|
require "koyomi"
|
@@ -39,16 +40,16 @@ Handling calendar by this gem.
|
|
39
40
|
# nth week day.
|
40
41
|
cal.nth_wday(1, :sat).to_s # => "2012-12-01"
|
41
42
|
|
43
|
+
# cycle: every monday.
|
44
|
+
# (japanese) 周期:毎週月曜
|
45
|
+
cal.cycles(:every, :mon).collect { |d| d.to_s }
|
46
|
+
# => ["2012-12-03", "2012-12-10", "2012-12-17", "2012-12-24", "2012-12-31"]
|
47
|
+
|
42
48
|
# cycle: 1st, 3rd week's tuesday or friday.
|
43
49
|
# (japanese) 周期:第1、第3の火曜と金曜
|
44
50
|
cal.cycles([1, 3], [:tue, :fri]).collect { |d| d.to_s }
|
45
51
|
# => ["2012-12-04", "2012-12-07", "2012-12-18", "2012-12-21"]
|
46
52
|
|
47
|
-
# cycle: every montday.
|
48
|
-
# (japanese) 周期:毎週月曜
|
49
|
-
cal.cycles(:every, [:mon]).collect { |d| d.to_s }
|
50
|
-
# => ["2012-12-03", "2012-12-10", "2012-12-17", "2012-12-24", "2012-12-31"]
|
51
|
-
|
52
53
|
|
53
54
|
## Contributing
|
54
55
|
|
data/lib/koyomi/version.rb
CHANGED