Class: Roo::Excelx::SharedStrings

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

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



6
7
8
# File 'lib/roo/excelx/shared_strings.rb', line 6

def [](index)
  to_a[index]
end

#to_aObject



10
11
12
# File 'lib/roo/excelx/shared_strings.rb', line 10

def to_a
  @array ||= extract_shared_strings
end

#to_htmlObject



14
15
16
# File 'lib/roo/excelx/shared_strings.rb', line 14

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)


20
21
22
# File 'lib/roo/excelx/shared_strings.rb', line 20

def use_html?(index)
  to_html[index][/<([biu]|sup|sub)>/]
end