module Zakuro::Tools::Typeof
Typeof
型判定
Public Class Methods
time?(obj:)
click to toggle source
時間を表す型か
@param [Object] obj 引数
@return [True] 時間型である @return [False] 時間型ではない
# File lib/zakuro/tools/typeof.rb, line 24 def self.time?(obj:) return true if obj.is_a?(Western::Calendar) return true if obj.is_a?(Calculation::Cycle::AbstractRemainder) false end