Class: Epuber::Compiler::FileTypes::StylusFile

Inherits:
SourceFile show all
Defined in:
lib/epuber/compiler/file_types/stylus_file.rb

Instance Attribute Summary

Attributes inherited from SourceFile

#abs_source_path, #file_request, #source_path

Attributes inherited from AbstractFile

#destination_path, #final_destination_path, #group, #path_type, #pkg_destination_path, #properties

Instance Method Summary collapse

Methods inherited from SourceFile

#default_file_copy, #initialize, #write_compiled, #write_processed

Methods inherited from AbstractFile

#==, file_copy, file_copy!, file_copy?, write_to_file, write_to_file!, write_to_file?

Constructor Details

This class inherits a constructor from Epuber::Compiler::FileTypes::SourceFile

Instance Method Details

#process(compilation_context) ⇒ Object

Parameters:



14
15
16
# File 'lib/epuber/compiler/file_types/stylus_file.rb', line 14

def process(compilation_context)
  write_compiled(Stylus.compile(File.new(abs_source_path)))
end