Class: Speq::Message

Inherits:
SomeValue show all
Defined in:
lib/speq/values.rb,
lib/speq/string_fmt.rb

Instance Attribute Summary

Attributes inherited from SomeValue

#description, #value

Instance Method Summary collapse

Methods inherited from SomeValue

#initialize

Constructor Details

This class inherits a constructor from Speq::SomeValue

Instance Method Details

#to_sObject



79
80
81
82
# File 'lib/speq/string_fmt.rb', line 79

def to_s
  extra = description ? " (#{description})" : nil
  "#{value}#{extra}"
end