Sha256: ad0c655a552a79df6058f4c86101a267ec4c7639b223ddd109c1a7b7c07f0c18
Contents?: true
Size: 654 Bytes
Versions: 3
Compression:
Stored size: 654 Bytes
Contents
require 'range_dsl' module RangeDsl module FilterExp class Invert include ConnectionExp::Client attr_accessor :src def initialize(src) @src = src end def include?(v) !src.include?(v) end def inspect "not_be(#{@src.inspect})" end end class Func include ConnectionExp::Client def initialize(block_str = nil, &block) @block_str = block_str @block = block end def include?(v) !!@block.call(v) end def inspect "func" << (@block_str ? "(#{@block_str.inspect})" : '{}') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
range_dsl-0.1.2 | lib/range_dsl/filter_exp.rb |
range_dsl-0.1.1 | lib/range_dsl/filter_exp.rb |
range_dsl-0.1.0 | lib/range_dsl/filter_exp.rb |