class MyClass def initialize # ... end puts "I'm executed, too." t = Time.now if t.wday == 2 # today is Tuesday def my_method # ... end end end