this_year?
index > programming > language > ruby
module DateAndTime module Calculations def this_year? year == ::Date.current.year end end end