class Jekyll::Minibundle::VariableTemplate::SyntaxError

Constants

CURSOR

Public Class Methods

new(message, template, position) click to toggle source
Calls superclass method
   # File lib/jekyll/minibundle/variable_template.rb
22 def initialize(message, template, position)
23   super()
24   @message = message
25   @template = template
26   @position = position
27 end

Public Instance Methods

to_s() click to toggle source
   # File lib/jekyll/minibundle/variable_template.rb
29       def to_s
30         template_before_pos = @template[0, @position]
31         template_after_pos = @template[@position..-1]
32 
33         <<~MESSAGE
34           #{@message} at position #{@position} in template (position highlighted with "#{CURSOR}"):
35           #{template_before_pos}#{CURSOR}#{template_after_pos}
36         MESSAGE
37       end