Class: D3::FormatSpecifier
- Inherits:
-
Object
- Object
- D3::FormatSpecifier
- Includes:
- Native
- Defined in:
- lib/opal/d3/format.rb
Constant Summary collapse
- FIELDS =
%W[fill align sign symbol zero width comma precision type]
Instance Method Summary collapse
Methods included from Native
Instance Method Details
#to_h ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/opal/d3/format.rb', line 16 def to_h result = {} FIELDS.each do |key| result[key] = send(key) end result end |
#to_n ⇒ Object
24 25 26 |
# File 'lib/opal/d3/format.rb', line 24 def to_n @native end |