Class: Roo::Excelx::Styles

Inherits:
Extractor show all
Defined in:
lib/roo/excelx/styles.rb

Instance Method Summary collapse

Methods inherited from Extractor

#initialize

Constructor Details

This class inherits a constructor from Roo::Excelx::Extractor

Instance Method Details

#definitionsObject



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