readable_message 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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