Module: ATD::Compilation::Precompiler

Extended by:
Precompiler
Included in:
Precompiler
Defined in:
lib/atd/routes.rb,
lib/extensions/precompilers.rb

Overview

A module designed to hold all the precompilation methods

Instance Method Summary collapse

Instance Method Details

#css(file) ⇒ Object



6
7
8
# File 'lib/extensions/precompilers.rb', line 6

def css(file)
  file.gsub(/[\s\n]/, "")
end

#filetypesObject

Lists all filestypes that have defined precompiler methods



10
11
12
# File 'lib/atd/routes.rb', line 10

def filetypes
  instance_methods(true) - [:filetypes]
end

#html(file) ⇒ Object



2
3
4
# File 'lib/extensions/precompilers.rb', line 2

def html(file)
  file
end