class Zakuro::Operation::Diffs

Diffs 総差分

Attributes

days[R]

@return [Integer] 日差分

month[R]

@return [Month] 月差分

solar_term[R]

@return [SolarTerm::Direction] 二十四節気差分

Public Class Methods

new(month: Month.new, solar_term: SolarTerm::Direction.new, days: INVALID_DAY_VALUE) click to toggle source

初期化

@param [Month] month 月差分 @param [SolarTerm::Direction] solar_term 二十四節気差分 @param [Integer] days 日差分

# File lib/zakuro/operation/month/type.rb, line 162
def initialize(month: Month.new, solar_term: SolarTerm::Direction.new,
               days: INVALID_DAY_VALUE)
  @month = month
  @solar_term = solar_term
  @days = days
end

Public Instance Methods

invalid_days?() click to toggle source

日差分が無効か

@return [True] 無効 @return [False] 有効

# File lib/zakuro/operation/month/type.rb, line 175
def invalid_days?
  @days == INVALID_DAY_VALUE
end