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

#to_sObject



6
7
8
# File 'lib/dicebag/label_part.rb', line 6

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