Module: Bio::Bam::StringQueries

Includes:
ComparisonQueries
Included in:
StringQueryBuilder, TagQueryBuilder
Defined in:
lib/bio-sambamba/filtering.rb

Overview

see comment above for NumberQueries

Instance Method Summary collapse

Instance Method Details

#=~(regex) ⇒ Object



37
38
39
40
# File 'lib/bio-sambamba/filtering.rb', line 37

def =~ regex
  raise 'operand must be Regexp' unless regex.kind_of? Regexp
  @querybuilder.subexpressions << "#{@name} =~ #{regex.inspect}"
end