class EDTF::Decade

Public Class Methods

current() click to toggle source
   # File lib/edtf/epoch.rb
12 def current
13   new(Date.today.year)
14 end
new(year = 0) click to toggle source
   # File lib/edtf/epoch.rb
26 def initialize(year = 0)
27   self.year = year
28 end