metanorma/metanorma-ogc

View on GitHub
lib/relaton/render/date.rb

Summary

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