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.



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

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

Instance Method Details

#to_sObject



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

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