# frozen_string_literal: true require 'date' Date.class_eval do # @return [String] - yyyy-mm def month_year input[0, 7] end end