module Rubyvis::Format

Public Class Methods

date(pattern) click to toggle source
# File lib/rubyvis/format.rb, line 13
def self.date(pattern)
  Format::Date.new(pattern)
end
number() click to toggle source
# File lib/rubyvis/format.rb, line 10
def self.number
  Format::Number.new
end
re(s) click to toggle source
# File lib/rubyvis/format.rb, line 7
def self.re(s)
  s.gsub(%r[\\\^\$\*\+\?\[\]\(\)\.\{\}]/, "\\$&")
end