Sha256: db5115e7a05cbe67a59aa92eed8cea93480b1e1e4eeebce420017200e5d5306d

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

# Date 클래스에 iso_year 를 추가한다.
Date.class_eval do
  def iso_year
    if self >= ::Date.new(year, 12, 20) && cweek < 10
      return year + 1
    elsif self <= ::Date.new(year, 1, 10) && cweek > 50
      return year - 1
    end
    year
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatio-core-0.0.6 lib/hatio-core/patch/date.rb