blob: fcbec594b7a5de3060ac460b9d75a74644b6221c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'specification'
module Booty
class BlockSpecification
include Booty::Specification
def initialize(&block)
@block = block
end
def matches?(item)
@block.call(item)
end
end
end
|