Class: Kitabu::Exporter::CSS
Instance Attribute Summary collapse
-
#root_dir ⇒ Object
readonly
Returns the value of attribute root_dir.
Attributes inherited from Base
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_dir ⇒ Object (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
#export ⇒ Object
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 |