readable_message 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/lib/readable_message.rb +1 -3
- data/lib/readable_message/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -19,9 +19,9 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
`
|
22
|
+
`obj.to_readable(*args)` // Takes a string or any object that responds to :class, :message, and/or :backtrace
|
23
23
|
or
|
24
|
-
`ReadableMessage::Formatter.new(
|
24
|
+
`ReadableMessage::Formatter.new(obj, *args).to_s`
|
25
25
|
|
26
26
|
where `*args` is a list of methods that should be called on the object (to_s, to_i, backtrace, etc)
|
27
27
|
|
data/lib/readable_message.rb
CHANGED