Class: Kitabu::Exporter::CSS

Inherits:
Base
  • Object
show all
Defined in:
lib/kitabu/exporter/css.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#source

Instance Method Summary collapse

Methods inherited from Base

#config, #copy_directory, export, #handle_error, #initialize, #name, #render_template, #source_list, #spawn_command, #ui

Constructor Details

This class inherits a constructor from Kitabu::Exporter::Base

Instance Attribute Details

#root_dirObject (readonly)

Returns the value of attribute root_dir.



6
7
8
# File 'lib/kitabu/exporter/css.rb', line 6

def root_dir
  @root_dir
end

Instance Method Details

#exportObject



8
9
10
11
12
13
14
15
# File 'lib/kitabu/exporter/css.rb', line 8

def export
  super

  FileUtils.cp_r(
    root_dir.join("templates/styles").to_s,
    root_dir.join("output").to_s
  )
end