Class: DiceBag::LabelPart
- Inherits:
-
SimplePart
- Object
- SimplePart
- DiceBag::LabelPart
- Defined in:
- lib/dicebag/label_part.rb
Overview
The subclass for a label.
Instance Attribute Summary
Attributes inherited from SimplePart
Instance Method Summary collapse
Methods inherited from SimplePart
Constructor Details
This class inherits a constructor from DiceBag::SimplePart
Instance Method Details
#inspect ⇒ Object
8 9 10 |
# File 'lib/dicebag/label_part.rb', line 8 def inspect "<#{self.class.name} #{self}>" end |
#to_s ⇒ Object
4 5 6 |
# File 'lib/dicebag/label_part.rb', line 4 def to_s format('(%s)', value) end |