Class: Deface::Sources::Slim

Inherits:
Source
  • Object
show all
Defined in:
lib/deface/sources/slim.rb

Class Method Summary collapse

Methods inherited from Source

to_sym

Class Method Details

.execute(override) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/deface/sources/slim.rb', line 4

def self.execute(override)
  if Rails.application.config.deface.slim_support
    Deface::SlimConverter.new(override.args[:slim]).result
  else
    raise Deface::NotSupportedError, "`#{override.name}` supplies :slim source, but slim_support is not detected."
  end
end