Class: Roo::Excelx::Styles
- Defined in:
- lib/roo/excelx/styles.rb
Instance Method Summary collapse
- #definitions ⇒ Object
-
#style_format(style) ⇒ Object
convert internal excelx attribute to a format.
Methods inherited from Extractor
Constructor Details
This class inherits a constructor from Roo::Excelx::Extractor
Instance Method Details
#definitions ⇒ Object
13 14 15 |
# File 'lib/roo/excelx/styles.rb', line 13 def definitions @definitions ||= extract_definitions end |
#style_format(style) ⇒ Object
convert internal excelx attribute to a format
8 9 10 11 |
# File 'lib/roo/excelx/styles.rb', line 8 def style_format(style) id = num_fmt_ids[style.to_i] num_fmts[id] || Excelx::Format::STANDARD_FORMATS[id.to_i] end |