Sha256: 82de75e6df047daee4a4b626c2edc9bec9010671de220287557a2abc3e96e51f

Contents?: true

Size: 417 Bytes

Versions: 26

Compression:

Stored size: 417 Bytes

Contents

module Foobara
  module Callback
    class Block
      module Concerns
        module BlockParameterRequired
          private

          def validate_original_block!
            super

            unless takes_block?
              # :nocov:
              raise ArgumentError, "#{type} callback must take a block argument"
              # :nocov:
            end
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.25 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.24 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.23 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.22 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.21 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.20 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.19 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.18 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.17 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.16 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.15 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.14 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.13 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.12 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.11 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.10 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.9 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.8 projects/callback/src/block/concerns/block_parameter_required.rb
foobara-0.0.7 projects/callback/src/block/concerns/block_parameter_required.rb