Sha256: ae1d84056725156cc6d9a57fa645dc2f4de0f61aa477912b2e9d3c99aa489332

Contents?: true

Size: 135 Bytes

Versions: 13

Compression:

Stored size: 135 Bytes

Contents

require 'strscan'

class StringScanner
  def advanced_scan(pat)
    result = scan(pat)
    result && result.match(pat)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bioinform-0.1.17 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.16 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.15 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.14 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.13 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.12 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.11 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.10 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.9 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.8 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.7 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.6 lib/bioinform/support/advanced_scan.rb
bioinform-0.1.5 lib/bioinform/support/advanced_scan.rb