Sha256: 711744d4bc0aade2491ee7b34db6e88dc88526f263c221eb43a06c3729f7c119

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

require 'bitmapped/exceptions'
require 'bitmapped/validators/validation_helper'

module Bitmapped
  module Validators
    class ValidateBitmapInitialised

      class << self
        def parse_and_validate(bitmap)
          raise BitmapNotInitialised unless bitmap.pixels
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitmapped-0.2.0 lib/bitmapped/validators/validate_bitmap_initialised.rb