Sha256: 1c00eda005dc361a373855c29ce75354ccfb680b6859edce6490be1d95b65134

Contents?: true

Size: 615 Bytes

Versions: 20

Compression:

Stored size: 615 Bytes

Contents

module Bulldog
  module Attachment
    class None < Maybe
      handle :none

      #
      # Return true.  (Overrides ActiveSupport's Object#blank?)
      #
      # This means #present? will be false too.
      #
      def blank?
        true
      end

      def path(style_name = reflection.default_style)
        nil
      end

      def url(style_name = reflection.default_style)
        nil
      end

      def size
        nil
      end

      def save
      end

      def destroy
      end

      def process(event, options={})
      end

      def process!(event, options={})
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
bulldog-0.2.4 lib/bulldog/attachment/none.rb
bulldog-0.2.3 lib/bulldog/attachment/none.rb
bulldog-0.2.2 lib/bulldog/attachment/none.rb
bulldog-0.2.1 lib/bulldog/attachment/none.rb
bulldog-0.2.0 lib/bulldog/attachment/none.rb
bulldog-0.1.1 lib/bulldog/attachment/none.rb
bulldog-0.1.0 lib/bulldog/attachment/none.rb
bulldog-0.0.15 lib/bulldog/attachment/none.rb
bulldog-0.0.14 lib/bulldog/attachment/none.rb
bulldog-0.0.13 lib/bulldog/attachment/none.rb
bulldog-0.0.12 lib/bulldog/attachment/none.rb
bulldog-0.0.11 lib/bulldog/attachment/none.rb
bulldog-0.0.10 lib/bulldog/attachment/none.rb
bulldog-0.0.9 lib/bulldog/attachment/none.rb
bulldog-0.0.8 lib/bulldog/attachment/none.rb
bulldog-0.0.7 lib/bulldog/attachment/none.rb
bulldog-0.0.6 lib/bulldog/attachment/none.rb
bulldog-0.0.5 lib/bulldog/attachment/none.rb
bulldog-0.0.3 lib/bulldog/attachment/none.rb
bulldog-0.0.4 lib/bulldog/attachment/none.rb