Class: Roo::Excelx::SharedStrings

Inherits:
Extractor
  • Object
show all
Defined in:
lib/roo/excelx/shared_strings.rb

Constant Summary

Constants inherited from Extractor

Extractor::COMMON_STRINGS

Instance Method Summary collapse

Methods inherited from Extractor

#initialize

Constructor Details

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

Instance Method Details

#[](index) ⇒ Object



8
9
10
# File 'lib/roo/excelx/shared_strings.rb', line 8

def [](index)
  to_a[index]
end

#to_aObject



12
13
14
# File 'lib/roo/excelx/shared_strings.rb', line 12

def to_a
  @array ||= extract_shared_strings
end

#to_htmlObject



16
17
18
# File 'lib/roo/excelx/shared_strings.rb', line 16

def to_html
  @html ||= extract_html
end

#use_html?(index) ⇒ Boolean

Use to_html or to_a for html returns See what is happening with commit???

Returns:

  • (Boolean)


22
23
24
25
# File 'lib/roo/excelx/shared_strings.rb', line 22

def use_html?(index)
  return false if @options[:disable_html_wrapper]
  to_html[index][/<([biu]|sup|sub)>/]
end