Sha256: ab51f1d6410e60052b6db865d5b88aa30e0982440cc736f31d499d53182e760e
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
module MARC class Subfield attr_accessor :code, :value def initialize(code,value) @code = code @value = value end def ==(other) if @code != other.code return false elsif @value != other.value return false end return true end def to_s return "$#{code}#{value}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marc-0.0.2 | lib/marc/subfield.rb |
marc-0.0.3 | lib/marc/subfield.rb |
marc-0.0.4 | lib/marc/subfield.rb |