Module: Darian::DateMethods
Instance Attribute Summary collapse
-
#month ⇒ Object
readonly
Returns the value of attribute month.
-
#month_of_season ⇒ Object
readonly
Returns the value of attribute month_of_season.
-
#season ⇒ Object
readonly
Returns the value of attribute season.
-
#sol ⇒ Object
(also: #day)
readonly
Returns the value of attribute sol.
-
#sol_of_season ⇒ Object
readonly
Returns the value of attribute sol_of_season.
-
#week_sol ⇒ Object
(also: #week_day)
readonly
Returns the value of attribute week_sol.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
- #month_name ⇒ Object
- #week_sol_name ⇒ Object (also: #week_day_name)
Instance Attribute Details
#month ⇒ Object (readonly)
Returns the value of attribute month.
4 5 6 |
# File 'lib/darian/date_methods.rb', line 4 def month @month end |
#month_of_season ⇒ Object (readonly)
Returns the value of attribute month_of_season.
10 11 12 |
# File 'lib/darian/date_methods.rb', line 10 def month_of_season @month_of_season end |
#season ⇒ Object (readonly)
Returns the value of attribute season.
8 9 10 |
# File 'lib/darian/date_methods.rb', line 8 def season @season end |
#sol ⇒ Object (readonly) Also known as: day
Returns the value of attribute sol.
5 6 7 |
# File 'lib/darian/date_methods.rb', line 5 def sol @sol end |
#sol_of_season ⇒ Object (readonly)
Returns the value of attribute sol_of_season.
9 10 11 |
# File 'lib/darian/date_methods.rb', line 9 def sol_of_season @sol_of_season end |
#week_sol ⇒ Object (readonly) Also known as: week_day
Returns the value of attribute week_sol.
7 8 9 |
# File 'lib/darian/date_methods.rb', line 7 def week_sol @week_sol end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
3 4 5 |
# File 'lib/darian/date_methods.rb', line 3 def year @year end |
Instance Method Details
#month_name ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/darian/date_methods.rb', line 15 def month_name case @month when 1 then 'Sagittarius' when 2 then 'Dhanus' when 3 then 'Capricornus' when 4 then 'Makara' when 5 then 'Aquarius' when 6 then 'Kumbha' when 7 then 'Pisces' when 8 then 'Mina' when 9 then 'Aries' when 10 then 'Mesha' when 11 then 'Taurus' when 12 then 'Rishabha' when 13 then 'Gemini' when 14 then 'Mithuna' when 15 then 'Cancer' when 16 then 'Karka' when 17 then 'Leo' when 18 then 'Simha' when 19 then 'Virgo' when 20 then 'Kanya' when 21 then 'Libra' when 22 then 'Tula' when 23 then 'Scorpius' when 24 then 'Vrishika' end end |
#week_sol_name ⇒ Object Also known as: week_day_name
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/darian/date_methods.rb', line 44 def week_sol_name case @week_sol when 1 then 'Sol Solis' when 2 then 'Sol Lunae' when 3 then 'Sol Martis' when 4 then 'Sol Mercurii' when 5 then 'Sol Jovis' when 6 then 'Sol Veneris' when 7 then 'Sol Saturni' end end |