Sha256: 92a5aac67b66b477996f7fefb7b4fb60abd7af4129a107628603fd16988c5c96

Contents?: true

Size: 421 Bytes

Versions: 27

Compression:

Stored size: 421 Bytes

Contents

module Foobara
  module Callback
    class Block
      module Concerns
        module BlockParameterNotAllowed
          private

          def validate_original_block!
            super

            if takes_block?
              # :nocov:
              raise ArgumentError, "#{type} callback is not allowed to accept a block"
              # :nocov:
            end
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foobara-0.0.7 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.6 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.5 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.4 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.3 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.2 projects/callback/src/block/concerns/block_parameter_not_allowed.rb
foobara-0.0.1 projects/callback/src/block/concerns/block_parameter_not_allowed.rb