Sha256: 68eac9b8935a3b6362e6b9662b93046ebf4725431ccee307c759d5bc9ab2b126

Contents?: true

Size: 220 Bytes

Versions: 17

Compression:

Stored size: 220 Bytes

Contents

module Relaton
  module Render
    module Ogc
      class Date < ::Relaton::Render::Date
        def render
          @type == "accessed" or @date&.sub(/-.*$/, "")
          @date
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
metanorma-ogc-2.6.6 lib/relaton/render/date.rb
metanorma-ogc-2.6.5 lib/relaton/render/date.rb
metanorma-ogc-2.6.4 lib/relaton/render/date.rb
metanorma-ogc-2.6.3 lib/relaton/render/date.rb
metanorma-ogc-2.6.2 lib/relaton/render/date.rb
metanorma-ogc-2.6.1 lib/relaton/render/date.rb
metanorma-ogc-2.6.0 lib/relaton/render/date.rb
metanorma-ogc-2.5.14 lib/relaton/render/date.rb
metanorma-ogc-2.5.13 lib/relaton/render/date.rb
metanorma-ogc-2.5.12 lib/relaton/render/date.rb
metanorma-ogc-2.5.10 lib/relaton/render/date.rb
metanorma-ogc-2.5.9 lib/relaton/render/date.rb
metanorma-ogc-2.5.8 lib/relaton/render/date.rb
metanorma-ogc-2.5.7 lib/relaton/render/date.rb
metanorma-ogc-2.5.6 lib/relaton/render/date.rb
metanorma-ogc-2.5.5 lib/relaton/render/date.rb
metanorma-ogc-2.5.4 lib/relaton/render/date.rb