Sha256: c1ec4ac82334bdf2fccb416661861a7f401fcd7880686e3ec39a051634ce2eb2
Contents?: true
Size: 208 Bytes
Versions: 3
Compression:
Stored size: 208 Bytes
Contents
# encoding: utf-8 # Generates the condition object with regexp def generate(regexp) klass = Class.new(Selector::Condition) klass.send(:define_method, :[]) { |value| nil ^ value[regexp] } klass.new end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
selector-0.0.3 | spec/shared/generator.rb |
selector-0.0.2 | spec/shared/generator.rb |
selector-0.0.1 | spec/shared/generator.rb |