Method: Val::DSL#key

Defined in:
lib/val.rb

#key(name, *conditions) ⇒ Object



16
17
18
19
# File 'lib/val.rb', line 16

def key name, *conditions
  conditions = [NotNil] if conditions.empty?
  @claims += conditions.map { |condition| Key.new name, condition }
end