Class: Fixme::Runner
- Inherits:
-
Object
- Object
- Fixme::Runner
- Defined in:
- lib/fixme.rb
Constant Summary collapse
- RUN_ONLY_IN_THESE_FRAMEWORK_ENVS =
[ "", "test", "development" ]
Instance Method Summary collapse
-
#initialize(date_and_message) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(date_and_message) ⇒ Runner
Returns a new instance of Runner.
49 50 51 |
# File 'lib/fixme.rb', line 49 def initialize() @date_and_message = end |
Instance Method Details
#run ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/fixme.rb', line 53 def run return if ENV["DISABLE_FIXME_LIB"] return unless RUN_ONLY_IN_THESE_FRAMEWORK_ENVS.include?(framework_env.to_s) due_date, = parse disallow_timecop do Fixme.explode(due_date, ) if Date.today >= due_date end end |