Sha256: 75c3c8a879ceae768c2523bc2af0f65f155d557dcb42811099d85d5c12d194c6
Contents?: true
Size: 207 Bytes
Versions: 3
Compression:
Stored size: 207 Bytes
Contents
module Support class QueryString < String def method_missing(name, *arguments, &block) return super unless name.to_s =~ /^(?<name>.+)\?$/ self == Regexp.last_match(:name) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rail-0.1.1 | lib/support/query_string.rb |
rail-0.1.0 | lib/support/query_string.rb |
rail-0.0.8 | lib/support/query_string.rb |