class Zakuro::Operation::SolarTerm::Source
Source
二十四節気(移動元)
Attributes
index[R]
@return [Integer] 二十四節気番号
to[R]
@return [Western::Calendar] 移動先の月初日
zodiac_name[R]
@return [String] 十干十二支
Public Class Methods
new(index: -1, to: Western::Calendar.new, zodiac_name: '')
click to toggle source
初期化
@param [Integer] index 二十四節気番号 @param [Western::Calendar] to 移動先の月初日 @param [String] zodiac_name
十干十二支
# File lib/zakuro/operation/month/type.rb, line 285 def initialize(index: -1, to: Western::Calendar.new, zodiac_name: '') @index = index @to = to @zodiac_name = zodiac_name end
Public Instance Methods
invalid?()
click to toggle source
無効か
@return [True] 無効 @return [False] 有効
# File lib/zakuro/operation/month/type.rb, line 297 def invalid? @index == -1 end