class Zakuro::Calculation::Monthly::FirstDay
FirstDay
月初日(朔日)
Attributes
remainder[R]
@return [Remainder] 大余小余
western_date[R]
@return [Western::Calendar] 西暦日
Public Class Methods
new(western_date: Western::Calendar.new, remainder:)
click to toggle source
初期化
@param [Remainder] remainder 西暦日 @param [Western::Calendar] western_date
大余小余
# File lib/zakuro/calculation/monthly/first_day.rb, line 26 def initialize(western_date: Western::Calendar.new, remainder:) # 西暦日 @western_date = western_date # 大余小余 @remainder = remainder end
Public Instance Methods
initialize_copy(obj)
click to toggle source
ディープコピー
@param [FirstDay] obj 自身
# File lib/zakuro/calculation/monthly/first_day.rb, line 38 def initialize_copy(obj) @western_date = obj.western_date.clone @remainder = obj.remainder.clone end