Class: Tilt::AxlsxTemplate
- Inherits:
-
Template
- Object
- Template
- Tilt::AxlsxTemplate
- Defined in:
- lib/tilt/axlsx.rb
Instance Method Summary collapse
- #precompiled_postamble(locals) ⇒ Object
- #precompiled_preamble(locals) ⇒ Object
- #precompiled_template(locals) ⇒ Object
- #prepare ⇒ Object
Instance Method Details
#precompiled_postamble(locals) ⇒ Object
15 16 17 |
# File 'lib/tilt/axlsx.rb', line 15 def precompiled_postamble(locals) "xlsx_package.to_stream.string" end |
#precompiled_preamble(locals) ⇒ Object
11 12 13 |
# File 'lib/tilt/axlsx.rb', line 11 def precompiled_preamble(locals) "xlsx_package = ::Axlsx::Package.new" end |
#precompiled_template(locals) ⇒ Object
19 20 21 |
# File 'lib/tilt/axlsx.rb', line 19 def precompiled_template(locals) data.to_str end |
#prepare ⇒ Object
8 9 |
# File 'lib/tilt/axlsx.rb', line 8 def prepare end |