Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Includes:
- When::TM::TemporalPosition::Conversion
- Defined in:
- lib/when_exe/core/duration.rb,
lib/when_exe/core/extension.rb
Overview
Extensions to Numeric class
Direct Known Subclasses
Instance Method Summary collapse
-
#to_day_of_week ⇒ When::Coordinates::Residue
(also: #day_of_week)
曜日(剰余類).
-
#to_month_name ⇒ When::BasicTypes::M17n
(also: #month_name)
月名.
-
#to_pair(branch = nil) ⇒ When::Coordinates::Pair
(also: #pair)
self を幹の要素と解釈してWhen::Coordinates::Pair を生成.
-
#unit_duration ⇒ When::TM::Duration
メソッド名に相当する単位で表した When::TM::Duration.
-
#unit_interval_length ⇒ When::TM::IntervalLength
メソッド名に相当する単位で表した When::TM::IntervalLength.
-
#unit_period_duration ⇒ When::TM::PeriodDuration
メソッド名に相当する単位で表した When::TM::PeriodDuration.
Methods included from When::TM::TemporalPosition::Conversion
Instance Method Details
#to_day_of_week ⇒ When::Coordinates::Residue Also known as: day_of_week
Note:
core/extension
曜日(剰余類)
103 104 105 |
# File 'lib/when_exe/core/extension.rb', line 103 def to_day_of_week When::Coordinates::Residue.day_of_week(self) end |
#to_month_name ⇒ When::BasicTypes::M17n Also known as: month_name
Note:
core/extension
月名
self が 月番号の月名を返します
117 118 119 |
# File 'lib/when_exe/core/extension.rb', line 117 def to_month_name When::BasicTypes::M17n.month_name(self) end |
#to_pair(branch = nil) ⇒ When::Coordinates::Pair Also known as: pair
self を幹の要素と解釈してWhen::Coordinates::Pair を生成
128 129 130 |
# File 'lib/when_exe/core/extension.rb', line 128 def to_pair(branch=nil) Coordinates::Pair._force_pair(self, branch) end |
#unit_duration ⇒ When::TM::Duration
Note:
unit は second, minute, hour, day, week または seconds, minutes, hours, days, weeks に読み替える
Note:
core/duration
メソッド名に相当する単位で表した When::TM::Duration
|
# File 'lib/when_exe/core/duration.rb', line 73
|
#unit_interval_length ⇒ When::TM::IntervalLength
Note:
unit は second, minute, hour, day, week または seconds, minutes, hours, days, weeks に読み替える
Note:
core/extension
メソッド名に相当する単位で表した When::TM::IntervalLength
|
# File 'lib/when_exe/core/extension.rb', line 133
|
#unit_period_duration ⇒ When::TM::PeriodDuration
Note:
unit は second, minute, hour, day, week, month, year または seconds, minutes, hours, days, weeks, months, years に読み替える
Note:
core/extension
メソッド名に相当する単位で表した When::TM::PeriodDuration
|
# File 'lib/when_exe/core/extension.rb', line 142
|