Class: LCCallNumber::Lead
- Inherits:
-
Object
- Object
- LCCallNumber::Lead
- Defined in:
- lib/lc_callnumber/lcc.rb
Overview
The “lead” – initial letter(s) and digit(s)
Instance Attribute Summary collapse
-
#digits ⇒ Object
Returns the value of attribute digits.
-
#letters ⇒ Object
Returns the value of attribute letters.
Instance Method Summary collapse
-
#initialize(l, d) ⇒ Lead
constructor
A new instance of Lead.
- #inspect ⇒ Object
Constructor Details
#initialize(l, d) ⇒ Lead
Returns a new instance of Lead.
59 60 61 62 |
# File 'lib/lc_callnumber/lcc.rb', line 59 def initialize(l, d) @letters = l @digits = d end |
Instance Attribute Details
#digits ⇒ Object
Returns the value of attribute digits.
58 59 60 |
# File 'lib/lc_callnumber/lcc.rb', line 58 def digits @digits end |
#letters ⇒ Object
Returns the value of attribute letters.
58 59 60 |
# File 'lib/lc_callnumber/lcc.rb', line 58 def letters @letters end |
Instance Method Details
#inspect ⇒ Object
63 64 65 |
# File 'lib/lc_callnumber/lcc.rb', line 63 def inspect "Lead<#{letters}, #{digits.inspect}>" end |