Sha256: 444eb9364893e08195fa22ab0c2eeb0371fb4ba25798c6db8454e312e9a44488
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
module Columns # Public: Utility methods related to regular expressions. module Regex # Public: Find a table name if it exists. # # string - The String to scan for a table name. # # Returns a String table name or nil. def self.table_name(string) string.match(/create_table\s*"(\w\w*)"/) {|matchdata| matchdata[1] } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
columns-0.2.0 | lib/columns/regex.rb |
columns-0.1.1 | lib/columns/regex.rb |
columns-0.1.0 | lib/columns/regex.rb |
columns-0.0.1 | lib/columns/regex.rb |