class Zakuro::Senmyou::Solar::Location

Location 入定気

Constants

QUARTER

@return [Cycle::Remainder] 弦

Public Class Methods

new(lunar_age:) click to toggle source

初期化

@param [Cycle::Remainder] lunar_age 天正閏余(大余小余)

# File lib/zakuro/version/senmyou/stella/solar/location.rb, line 27
def initialize(lunar_age:)
  super(lunar_age: lunar_age, quarter: QUARTER)
end

Public Instance Methods

interval(index:) click to toggle source

二十四節気番号に対応する入気定日加減数を返す

@note 継承のためクラスメソッドにしない

@param [Integer] index 二十四節気番号

@return [Cycle::Remainder] 入気定日加減数

# File lib/zakuro/version/senmyou/stella/solar/location.rb, line 42
def interval(index:)
  Interval.index_of(index)
end
interval_size() click to toggle source

入気定日加減数の要素数を返す

@note 継承のためクラスメソッドにしない

@return [Integer] 入気定日加減数の要素数

# File lib/zakuro/version/senmyou/stella/solar/location.rb, line 55
def interval_size
  Interval.size
end