Sha256: 76f12941fb4d341dd0b5d81e34ce9adc0509e1df2e86ba97071abf30c5a34693

Contents?: true

Size: 348 Bytes

Versions: 24

Compression:

Stored size: 348 Bytes

Contents

module Rubyvis
  def self.Format
    Rubyvis::Format
  end

  module Format
    def self.re(s)
      s.gsub(/[\\\^\$\*\+\?\[\]\(\)\.\{\}]/, "\\$&")
    end
    def self.number
      Format::Number.new
    end
    def self.date(pattern)
      Format::Date.new(pattern)
    end
  end
end
require 'rubyvis/format/number'
require 'rubyvis/format/date'

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rubyvis-0.7.0 lib/rubyvis/format.rb
rubyvis-0.6.1 lib/rubyvis/format.rb
rubyvis-0.6.0 lib/rubyvis/format.rb
rubyvis-0.5.2 lib/rubyvis/format.rb
rubyvis-0.5.1 lib/rubyvis/format.rb
rubyvis-0.5.0 lib/rubyvis/format.rb
rubyvis-0.4.1 lib/rubyvis/format.rb
rubyvis-0.4.0 lib/rubyvis/format.rb
rubyvis-0.3.6 lib/rubyvis/format.rb
rubyvis-0.3.5 lib/rubyvis/format.rb
rubyvis-0.3.4 lib/rubyvis/format.rb
rubyvis-0.3.3 lib/rubyvis/format.rb
rubyvis-0.3.2 lib/rubyvis/format.rb
rubyvis-0.3.1 lib/rubyvis/format.rb
rubyvis-0.3.0 lib/rubyvis/format.rb
rubyvis-0.2.2 lib/rubyvis/format.rb
rubyvis-0.2.1 lib/rubyvis/format.rb
rubyvis-0.2.0 lib/rubyvis/format.rb
rubyvis-0.1.7 lib/rubyvis/format.rb
rubyvis-0.1.6 lib/rubyvis/format.rb