Sha256: 5ab2489072cd1fc5624e3abe8da1db78e0c88fe2b132089ea28a9d48a9d42750

Contents?: true

Size: 280 Bytes

Versions: 48

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

module Ree::Contracts
  module ArgContracts
    class Block
      def self.valid?(*)
        raise BadContractError, "#{name} contract is not allowed to use as argument contract"
      end

      def to_s
        "Block"
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ree-1.0.47 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.46 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.45 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.44 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.43 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.42 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.41 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.40 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.39 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.38 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.37 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.36 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.35 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.34 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.33 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.32 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.31 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.30 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.29 lib/ree/contracts/arg_contracts/block.rb
ree-1.0.28 lib/ree/contracts/arg_contracts/block.rb