Sha256: 932bddf5cee137b8320c6df9ea9bb17d13d805cce61f35536b72a4465d292273

Contents?: true

Size: 306 Bytes

Versions: 33

Compression:

Stored size: 306 Bytes

Contents

require 'awestruct/handlers/file_handler'

module Awestruct
  module Handlers
    class VerbatimFileHandler < FileHandler
      # Read file in binary mode so that it can be copied to the generated site as is
      def read_content
        File.open(@path, 'rb') {|is| is.read }
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
awestruct-0.6.7 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.6 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.5 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.4 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.3 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.2 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.1 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.0 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.0.RC1 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.0.alpha4 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.0.alpha3 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.6.0.alpha1 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.7 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.7.RC2 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.7.RC1 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.6 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.6.beta9 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.6.beta8 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.6.beta7 lib/awestruct/handlers/verbatim_file_handler.rb
awestruct-0.5.6.beta6 lib/awestruct/handlers/verbatim_file_handler.rb