Exception: Barber::PrecompilerError
- Inherits:
-
StandardError
- Object
- StandardError
- Barber::PrecompilerError
- Defined in:
- lib/barber.rb
Instance Method Summary collapse
-
#initialize(template, error) ⇒ PrecompilerError
constructor
A new instance of PrecompilerError.
- #to_s ⇒ Object
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_s ⇒ Object
17 18 19 |
# File 'lib/barber.rb', line 17 def to_s "Pre compilation failed for: #{@template}\n. Compiler said: #{@error}" end |