Exception: UsageMod::InvalidTimeError

Inherits:
Error
  • Object
show all
Defined in:
lib/Usage.rb

Overview

The user specified a invalid date/time format when the program was run

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_str) ⇒ InvalidTimeError

Returns a new instance of InvalidTimeError.



89
90
91
92
# File 'lib/Usage.rb', line 89

def initialize(time_str)
	@time_str = time_str
	super("invalid date/time: '#{time_str}'")
end

Instance Attribute Details

#time_strObject (readonly)

Returns the value of attribute time_str.



88
89
90
# File 'lib/Usage.rb', line 88

def time_str
  @time_str
end