lib/zakuro/version/gihou/stella/lunar/value.rb in zakuro-0.7.0 vs lib/zakuro/version/gihou/stella/lunar/value.rb in zakuro-0.7.2

- old
+ new

@@ -61,9 +61,11 @@ # @param [Cycle::LunarRemainder] remainder 大余小余 # # @return [True] 正しい(月の位相計算に使う大余小余) # @return [True] 正しくない # + # @raise [ArgumentError] 引数エラー + # def self.valid?(remainder:) return if remainder.is_a?(Cycle::LunarRemainder) raise ArgumentError, "unmatch parameter type: #{remainder.class}" end