Module: Rubyvis::Format
- Defined in:
- lib/rubyvis/format.rb,
lib/rubyvis/format/date.rb,
lib/rubyvis/format/number.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.date(pattern) ⇒ Object
13 14 15 |
# File 'lib/rubyvis/format.rb', line 13 def self.date(pattern) Format::Date.new(pattern) end |
.number ⇒ Object
10 11 12 |
# File 'lib/rubyvis/format.rb', line 10 def self.number Format::Number.new end |
.re(s) ⇒ Object
7 8 9 |
# File 'lib/rubyvis/format.rb', line 7 def self.re(s) s.gsub(/[\\\^\$\*\+\?\[\]\(\)\.\{\}]/, "\\$&") end |