Sha256: 9232ab3f445956c29355539040fe8d1287485e85cb2bfbd080099cc454dbf700

Contents?: true

Size: 427 Bytes

Versions: 11

Compression:

Stored size: 427 Bytes

Contents

module ScrewUnit
  module Resources
    class FileNotFound
      attr_reader :virtual_path

      def initialize(virtual_path)
        @virtual_path = virtual_path
      end

      def locate(name)
        self
      end
      
      def get
        puts "Couldn't find #{virtual_path}"
        [404, {}, "No file found at relative path '#{virtual_path}'"]
      end

      def error
        raise 
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
coolerator.vision-0.2.10 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.9 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.8 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.7 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.6 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.5 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.4 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.3 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.2 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.1 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb
coolerator.vision-0.2.0 spec/support/vendor/screw-unit/lib/screw_unit/resources/file_not_found.rb