lib/polytexnic/code_inclusion.rb
def to_s
      return unless filename

      result = []
      result << "%= lang:#{language}#{highlight}"
      result << '\begin{code}'
      result.concat(raw_code)
      result << '\end{code}'

      rescue CodeInclusionException => e
        code_error(e.message)
    end
# Returns the formatted code or an error message
Returns the formatted code or an error message
Returns the formatted code or an error message
def to_s
      return unless filename
      result = []
      result << "%= lang:#{language}#{highlight}"
      result << '\begin{code}'
      result.concat(raw_code)
      result << '\end{code}'
      rescue CodeInclusionException => e
        code_error(e.message)
    end
def to_s return unless filename result = [ ] result << "%= lang:#{language}#{highlight}" result << '\begin{code}' result . concat ( raw_code ) result << '\end{code}' rescue CodeInclusionException => e code_error ( e . message ) end
Returns the formatted code or an error message
Returns the formatted code or an error message