Class: RMARC::VariableField

Inherits:
Object
  • Object
show all
Defined in:
lib/rmarc/model/variable_field.rb

Overview

This class represents a variable field in a MARC record.

Direct Known Subclasses

ControlField, DataField

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ VariableField

Default constructor



31
32
33
# File 'lib/rmarc/model/variable_field.rb', line 31

def initialize(tag)
  @tag = tag
end

Instance Attribute Details

#tagObject

Returns the value of attribute tag.



28
29
30
# File 'lib/rmarc/model/variable_field.rb', line 28

def tag
  @tag
end

Instance Method Details

#to_sObject

Returns a string representation for the tag value.



36
37
38
# File 'lib/rmarc/model/variable_field.rb', line 36

def to_s
"#@tag "
end