Module: Zakuro::Operation
- Defined in:
- lib/zakuro/operation/operation.rb,
lib/zakuro/operation/month/type.rb,
lib/zakuro/operation/month/parser.rb,
lib/zakuro/operation/month/validator.rb
Overview
Operation 運用
Defined Under Namespace
Modules: MonthDiffsParser, MonthParser, SolarTerm, TypeParser, Validator Classes: Annotation, AnnotationParser, Days, Diffs, Leaped, Month, MonthHistory, Number, Reference
Constant Summary collapse
- MONTH_HISTORIES =
変更履歴(月)
MonthParser.run(filepath: File.( './yaml/month.yaml', __dir__ ))
- INVALID_DAY_VALUE =
日(差分)無効値
-30
Class Method Summary collapse
-
.month_histories ⇒ Array<MonthHistory>
変更履歴(月)を返す.
-
.specify_history(western_date:) ⇒ Operation::MonthHistory
変更履歴を特定する.
-
.specify_history_by_id(id:) ⇒ Operation::MonthHistory
変更履歴を特定する.
Class Method Details
.month_histories ⇒ Array<MonthHistory>
変更履歴(月)を返す
25 26 27 |
# File 'lib/zakuro/operation/operation.rb', line 25 def month_histories MONTH_HISTORIES end |
.specify_history(western_date:) ⇒ Operation::MonthHistory
変更履歴を特定する
38 39 40 41 42 43 44 45 46 |
# File 'lib/zakuro/operation/operation.rb', line 38 def specify_history(western_date:) month_histroies = month_histories month_histroies.each do |history| return history if western_date == history.western_date end Operation::MonthHistory.new end |
.specify_history_by_id(id:) ⇒ Operation::MonthHistory
変更履歴を特定する
57 58 59 60 61 62 63 64 65 |
# File 'lib/zakuro/operation/operation.rb', line 57 def specify_history_by_id(id:) month_histroies = month_histories month_histroies.each do |history| return history if id == history.id end Operation::MonthHistory.new end |