Class: DiceBag::LabelPart

Inherits:
SimplePart show all
Defined in:
lib/dicebag/label_part.rb

Overview

The subclass for a label.

Instance Attribute Summary

Attributes inherited from SimplePart

#value

Instance Method Summary collapse

Methods inherited from SimplePart

#initialize, #result

Constructor Details

This class inherits a constructor from DiceBag::SimplePart

Instance Method Details

#inspectObject



8
9
10
# File 'lib/dicebag/label_part.rb', line 8

def inspect
  "<#{self.class.name} #{self}>"
end

#to_sObject



4
5
6
# File 'lib/dicebag/label_part.rb', line 4

def to_s
  format('(%s)', value)
end