Sha256: 479f5588217d75fb8b9cd47099483a7b8622027f4dd3d95698c022b6229aaa85

Contents?: true

Size: 410 Bytes

Versions: 8

Compression:

Stored size: 410 Bytes

Contents

module RelatonIeee
  class DocumentStatus < RelatonBib::DocumentStatus
    class Stage < RelatonBib::DocumentStatus::Stage
      STAGES = %w[draft approved superseded withdrawn].freeze

      def initialize(value:, abbreviation: nil)
        unless STAGES.include?(value.downcase)
          Util.warn "Stage value must be one of: `#{STAGES.join('`, `')}`"
        end
        super
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
relaton-ieee-1.19.3 lib/relaton_ieee/document_status.rb
relaton-ieee-1.19.2 lib/relaton_ieee/document_status.rb
relaton-ieee-1.19.1 lib/relaton_ieee/document_status.rb
relaton-ieee-1.19.0 lib/relaton_ieee/document_status.rb
relaton-ieee-1.18.0 lib/relaton_ieee/document_status.rb
relaton-ieee-1.17.0 lib/relaton_ieee/document_status.rb
relaton-ieee-1.16.3 lib/relaton_ieee/document_status.rb
relaton-ieee-1.16.2 lib/relaton_ieee/document_status.rb