Class: Zakuro::Version::Daien::Cycle::SolarTerm

Inherits:
Calculation::Cycle::AbstractSolarTerm show all
Defined in:
lib/zakuro/version/daien/cycle/solar_term.rb

Overview

SolarTerm 二十四節気

Constant Summary collapse

SOLAR_TERM_AVERAGE =

Returns 気策(24分の1年).

Returns:

Const::Remainder::Solar::SOLAR_TERM_AVERAGE

Constants inherited from Calculation::Cycle::AbstractSolarTerm

Calculation::Cycle::AbstractSolarTerm::FIRST_INDEX, Calculation::Cycle::AbstractSolarTerm::LAST_INDEX, Calculation::Cycle::AbstractSolarTerm::ORDER

Instance Attribute Summary

Attributes inherited from Calculation::Cycle::AbstractSolarTerm

#average, #index, #remainder

Instance Method Summary collapse

Methods inherited from Calculation::Cycle::AbstractSolarTerm

#empty?, index?, #initialize_copy, #invalid?, #next_by_index, #next_term, #next_term!, #prev_by_index, #prev_term, #prev_term!

Constructor Details

#initialize(index: -1,, remainder: Remainder.new) ⇒ SolarTerm

初期化

Parameters:

  • index (Integer) (defaults to: -1,)

    連番

  • remainder (Remainder) (defaults to: Remainder.new)

    時刻情報(大余小余)



30
31
32
# File 'lib/zakuro/version/daien/cycle/solar_term.rb', line 30

def initialize(index: -1, remainder: Remainder.new)
  super(index: index, remainder: remainder, average: SOLAR_TERM_AVERAGE)
end