Sha256: 69e028596b606b96421ac2b15de03a1b6d7d499530e4bdd044b499a262196420

Contents?: true

Size: 434 Bytes

Versions: 8

Compression:

Stored size: 434 Bytes

Contents

require "rabbit/image/base"

module Rabbit
  module ImageManipulable

    class Default < Base

      push_loader(self)

      class << self
        def match?(filename)
          true
        end
      end

      private
      def update_size
        File.open(@filename, "rb") do |file|
          Dir.chdir(File.dirname(@filename)) do
            @pixbuf = load_data(file.read)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rabbit-2.2.1 lib/rabbit/image/default.rb
rabbit-2.2.0 lib/rabbit/image/default.rb
rabbit-2.1.9 lib/rabbit/image/default.rb
rabbit-2.1.8 lib/rabbit/image/default.rb
rabbit-2.1.7 lib/rabbit/image/default.rb
rabbit-2.1.6 lib/rabbit/image/default.rb
rabbit-2.1.5 lib/rabbit/image/default.rb
rabbit-2.1.4 lib/rabbit/image/default.rb