Sha256: b4e2c2653e4f3be377adc3d9a89b5237d8c8f1e8b95b46a91ee20cf2b7b88b64

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

module BerkeleyLibrary
  module Marc
    module FieldInfo
      module VarFields
        # A subfield value definition.
        class SubfieldVal
          # TODO: include Comparable
          include Obsolescible

          attr_reader :val
          attr_reader :desc

          def initialize(val:, desc:)
            @val = val
            @desc = desc
          end

          # see Object#to_s
          def to_s
            "#{val} - #{desc}"
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
berkeley_library-marc-0.3.1 lib/berkeley_library/marc/field_info/var_fields/subfield_val.rb
berkeley_library-marc-0.3.0 lib/berkeley_library/marc/field_info/var_fields/subfield_val.rb