| Class | Scruffy::Formatters::Base |
| In: |
lib/scruffy/formatters.rb
|
| Parent: | Object |
| Author: | Brasten Sager |
| Date: | August 16th, 2006 |
Formatters are used to format the values displayed on the y-axis by setting graph.value_formatter.
Called by the value marker component. Routes the format call to one of a couple possible methods.
If the formatter defines a format method, the returned value is used as the value. If the formatter defines a format! method, the value passed is expected to be modified, and is used as the value. (This may not actually work, in hindsight.)