Class: Tilt::AxlsxTemplate

Inherits:
Template
  • Object
show all
Defined in:
lib/tilt/axlsx.rb

Instance Method Summary collapse

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

#prepareObject



8
9
# File 'lib/tilt/axlsx.rb', line 8

def prepare
end