module Kernel
Public Instance Methods
TimeOfDay(string_or_int, *ints)
click to toggle source
rubocop: disable Naming/MethodName
# File lib/time_of_day/core_ext.rb, line 36 def TimeOfDay(string_or_int, *ints) if string_or_int.is_a? String unless ints.empty? raise(ArgumentError, 'TimeOfDay() takes a string or multiple integers as arguments') end TimeOfDay.parse(string_or_int) else TimeOfDay.new(string_or_int, *ints) end end