Class: When::Coordinates::Wuku
- Inherits:
-
Residue
- Object
- BasicTypes::Object
- Residue
- When::Coordinates::Wuku
- Defined in:
- lib/when_exe/region/balinese.rb
Overview
ウク周期
Constant Summary collapse
- Dwiwara =
2日週
[ 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]
- Dasawara =
10日週
[ 0, 1, 2, 3, 4, 3, 5, 6, 7, 8, 5, 3, 9, 2, 9, 4, 9, 1, 5, 1, 8, 7, 8, 1, 7, 2, 4, 4, 4, 6, 7, 0, 7, 0, 0]
- Watek =
Watek
[ 0, 1, 2, 3, 4, 3, 5, 6, 7, 8, 5, 3, 9,10, 9, 4, 9, 1, 5, 1,11, 7, 8, 1, 7,10, 4, 4, 4, 6, 7, 0, 7, 0, 0]
Constants inherited from Residue
Constants included from Parts::Resource
Parts::Resource::LabelProperty
Instance Attribute Summary
Attributes inherited from Residue
#carry, #divisor, #remainder, #units
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#_pool, #child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#astawara ⇒ When::BasicTypes::M17n
8日週.
-
#dasawara ⇒ When::BasicTypes::M17n
10日週.
-
#dwiwara ⇒ When::BasicTypes::M17n
2日週.
-
#sangawara ⇒ When::BasicTypes::M17n
9日週.
-
#tjaturwara ⇒ When::BasicTypes::M17n
4日週.
-
#watek ⇒ When::BasicTypes::M17n
Watek.
Methods inherited from Residue
#%, #&, #+, #-, #<<, #>>, #[], _china, #_enumerator, #_to_hash_value, day_of_week, #difference, #duration, #event, #initialize, mod, #to, #to_m17n, #to_s
Methods inherited from BasicTypes::Object
Methods included from Parts::Resource
#[], #^, _extract_prefix, _instance, _parse, _path_with_prefix, _setup_, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?
Methods included from Parts::Resource::Pool
#[], #[]=, #_pool, #_setup_, #pool_keys
Methods included from Parts::Resource::Synchronize
Constructor Details
This class inherits a constructor from When::Coordinates::Residue
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Coordinates::Residue
Instance Method Details
#astawara ⇒ When::BasicTypes::M17n
8日週
108 109 110 111 |
# File 'lib/when_exe/region/balinese.rb', line 108 def astawara index = (@remainder + 137) % 210 When.CalendarNote('BalineseNote/NoteObjects')['day']['Astawara'][index >= 208 ? 6 : (index-1) % 8] end |
#dasawara ⇒ When::BasicTypes::M17n
10日週
122 123 124 |
# File 'lib/when_exe/region/balinese.rb', line 122 def dasawara When.CalendarNote('BalineseNote/NoteObjects')['day']['Dasawara'][Dasawara[@remainder % 35]] end |
#dwiwara ⇒ When::BasicTypes::M17n
2日週
95 96 97 |
# File 'lib/when_exe/region/balinese.rb', line 95 def dwiwara When.CalendarNote('BalineseNote/NoteObjects')['day']['Dwiwara'][Dwiwara[@remainder % 35]] end |
#sangawara ⇒ When::BasicTypes::M17n
9日週
115 116 117 118 |
# File 'lib/when_exe/region/balinese.rb', line 115 def sangawara index = @remainder - 3 When.CalendarNote('BalineseNote/NoteObjects')['day']['Sangawara'][index < 0 ? 0 : index % 9] end |
#tjaturwara ⇒ When::BasicTypes::M17n
4日週
101 102 103 104 |
# File 'lib/when_exe/region/balinese.rb', line 101 def tjaturwara index = (@remainder + 137) % 210 When.CalendarNote('BalineseNote/NoteObjects')['day']['Tjaturwara'][index >= 208 ? 2 : (index-1) % 4] end |
#watek ⇒ When::BasicTypes::M17n
Watek
128 129 130 |
# File 'lib/when_exe/region/balinese.rb', line 128 def watek When.CalendarNote('BalineseNote/NoteObjects')['day']['Watek'][Watek[@remainder % 35]] end |