Exception: Barber::PrecompilerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/barber.rb

Instance Method Summary collapse

Constructor Details

#initialize(template, error) ⇒ PrecompilerError

Returns a new instance of PrecompilerError.



13
14
15
# File 'lib/barber.rb', line 13

def initialize(template, error)
  @template, @error = template, error
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/barber.rb', line 17

def to_s
  "Pre compilation failed for: #{@template}\n. Compiler said: #{@error}"
end