Class Scruffy::Formatters::Base
In: lib/scruffy/formatters.rb
Parent: Object

Scruffy::Formatters::Base

Author:Brasten Sager
Date:August 16th, 2006

Formatters are used to format the values displayed on the y-axis by setting graph.value_formatter.

Methods

Public Instance methods

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.)

[Validate]