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

Allows you to pass in a Proc for use as a formatter.

Use:

graph.value_formatter = Scruffy::Formatters::Custom.new { |value, idx, options| "Displays Returned Value" }

Methods

format   new  

Attributes

proc  [R] 

Public Class methods

Public Instance methods

[Validate]