Class: LCCallNumber::FirstCutterSet
- Inherits:
-
Object
- Object
- LCCallNumber::FirstCutterSet
- Defined in:
- lib/lc_callnumber/lcc.rb
Overview
Some call numbers have a year, infantry division, etc. preceeding and/or following the first cutter. We take all three as a unit so we can deal with edge cases more easily.
“doon” in this case is “Date Or Other Number”
Instance Attribute Summary collapse
-
#cutter ⇒ Object
Returns the value of attribute cutter.
-
#doon1 ⇒ Object
Returns the value of attribute doon1.
-
#doon2 ⇒ Object
Returns the value of attribute doon2.
Instance Method Summary collapse
-
#initialize(d1, cutter, d2) ⇒ FirstCutterSet
constructor
A new instance of FirstCutterSet.
Constructor Details
#initialize(d1, cutter, d2) ⇒ FirstCutterSet
Returns a new instance of FirstCutterSet.
128 129 130 131 132 |
# File 'lib/lc_callnumber/lcc.rb', line 128 def initialize(d1, cutter, d2) @doon1 = d1 @doon2 = d2 @cutter = cutter end |
Instance Attribute Details
#cutter ⇒ Object
Returns the value of attribute cutter.
127 128 129 |
# File 'lib/lc_callnumber/lcc.rb', line 127 def cutter @cutter end |
#doon1 ⇒ Object
Returns the value of attribute doon1.
127 128 129 |
# File 'lib/lc_callnumber/lcc.rb', line 127 def doon1 @doon1 end |
#doon2 ⇒ Object
Returns the value of attribute doon2.
127 128 129 |
# File 'lib/lc_callnumber/lcc.rb', line 127 def doon2 @doon2 end |