lib/zakuro/version/senmyou/stella/solar/average.rb in zakuro-0.4.0 vs lib/zakuro/version/senmyou/stella/solar/average.rb in zakuro-0.5.0

- old
+ new

@@ -53,11 +53,11 @@ winter_solstice = Origin::WinterSolstice.get(western_year: western_year) # 二十四節気(冬至) solar_term = Cycle::SolarTerm.new(index: 0, remainder: winter_solstice) - first_solar_term_index = Average.calc_fist_solar_term_index(western_year: western_year) + first_solar_term_index = Average.calc_first_solar_term_index(western_year: western_year) # 対象の二十四節気まで戻す solar_term.prev_by_index(first_solar_term_index) solar_term @@ -75,10 +75,10 @@ # # @param [Integer] western_year 西暦年 # # @return [Integer] 二十四節気番号 # - def self.calc_fist_solar_term_index(western_year:) + def self.calc_first_solar_term_index(western_year:) # 天正閏余 lunar_age = Origin::LunarAge.get(western_year: western_year) solar_location = Solar::Location.new(lunar_age: lunar_age) solar_location.run