Class: D3::FormatLocale
- Inherits:
-
Object
- Object
- D3::FormatLocale
- Includes:
- Native
- Defined in:
- lib/opal/d3/format.rb
Instance Method Summary collapse
Methods included from Native
Instance Method Details
#format(specifier) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/opal/d3/format.rb', line 32 def format(specifier) if specifier.is_a?(FormatSpecifier) @native.JS.format(specifier.to_n) else @native.JS.format(specifier) end end |
#format_prefix(specifier, value) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/opal/d3/format.rb', line 40 def format_prefix(specifier, value) if specifier.is_a?(FormatSpecifier) @native.JS.formatPrefix(specifier.to_n, value) else @native.JS.formatPrefix(specifier, value) end end |