Module: Iudex::Filter::KeyHelper

Included in:
Core::FilterChainFactory
Defined in:
lib/iudex-filter/key_helper.rb

Overview

Mixin module support for UniMap Keys

Class Method Summary collapse

Class Method Details

.keys(*syms) ⇒ Object

Map Symbols to Keys



49
50
51
# File 'lib/iudex-filter/key_helper.rb', line 49

def keys( *syms )
  syms.flatten.compact.map { |s| s.to_k }.uniq
end

.lookup_key(name) ⇒ Object

Lookup matching Key in UniMap::KEY_SPACE



38
39
40
# File 'lib/iudex-filter/key_helper.rb', line 38

def self.lookup_key( name )
  lookup_key_space( name )
end

.lookup_key_space(name) ⇒ Object

Lookup matching Key in UniMap::KEY_SPACE



43
44
45
46
# File 'lib/iudex-filter/key_helper.rb', line 43

def self.lookup_key_space( name )
  Gravitext::HTMap::UniMap::KEY_SPACE.get( name ) or
    raise( "Key #{name} not found" )
end