Sha256: 04187b0d91d1c69f39899581b5d8eda278d9b6770cc465a72a87ce479822a57e
Contents?: true
Size: 432 Bytes
Versions: 7
Compression:
Stored size: 432 Bytes
Contents
# The test parser regards any word starting with an upper-case letter as a pre-existing term class TestParser < ActiveFacts::CQL::Parser def context @context ||= Context.new(self) end class Context < ActiveFacts::CQL::Parser::Context # Capitalised words that are otherwise undefined are treated as terms: def system_term(t) (first = t[0,1] and first.upcase == first) ? {t=>t} : false end end end
Version data entries
7 entries across 7 versions & 1 rubygems