Class: RMARC::VariableField
- Inherits:
-
Object
- Object
- RMARC::VariableField
- Defined in:
- lib/rmarc/model/variable_field.rb
Overview
This class represents a variable field in a MARC record.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag) ⇒ VariableField
constructor
Default constructor.
-
#to_s ⇒ Object
Returns a string representation for the tag value.
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
#tag ⇒ Object
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_s ⇒ Object
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 |