lib/zakuro/version/senmyou/senmyou.rb in zakuro-0.5.0 vs lib/zakuro/version/senmyou/senmyou.rb in zakuro-0.6.0

- old
+ new

@@ -1,40 +1,11 @@ # frozen_string_literal: true -require 'date' -require_relative '../../era/western' -require_relative '../abstract_version' -require_relative '../context' -require_relative '../../calculation/summary/single' - # :nodoc: module Zakuro # # Senmyou 宣明暦 # module Senmyou - # - # Gateway アクセサメソッド群 - # - class Gateway < AbstractVersion - # @return [True] リリースあり - RELEASE = true - - # @return [String] 暦クラス名 - VERSION_NAME = 'Senmyou' - - # - # 西暦日から和暦日に変換する - # - # @param [Date] western_date 西暦日 - # - # @return [Result::Single] 和暦日 - # - def self.to_japan_date(western_date:) - date = Western::Calendar.create(date: western_date) - - context = Context.new(version_name: VERSION_NAME) - Calculation::Summary::Single.get(context: context, date: date) - end - end + # none end end