Class: Roo::Excelx::SharedStrings
- Inherits:
-
Excelx::Extractor
- Object
- Excelx::Extractor
- Roo::Excelx::SharedStrings
- Defined in:
- lib/roo/excelx/shared_strings.rb
Instance Method Summary collapse
- #[](index) ⇒ Object
- #to_a ⇒ Object
- #to_html ⇒ Object
-
#use_html?(index) ⇒ Boolean
Use to_html or to_a for html returns See what is happening with commit???.
Instance Method Details
#[](index) ⇒ Object
8 9 10 |
# File 'lib/roo/excelx/shared_strings.rb', line 8 def [](index) to_a[index] end |
#to_a ⇒ Object
12 13 14 |
# File 'lib/roo/excelx/shared_strings.rb', line 12 def to_a @array ||= extract_shared_strings end |
#to_html ⇒ Object
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???
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 |