Module: Definition::Types::Keys::Dsl

Included in:
Definition::Types::Keys
Defined in:
lib/definition/types/keys.rb

Instance Method Summary collapse

Instance Method Details

#optional(key, definition) ⇒ Object



16
17
18
# File 'lib/definition/types/keys.rb', line 16

def optional(key, definition)
  optional_definitions[key] = definition
end

#required(key, definition) ⇒ Object



12
13
14
# File 'lib/definition/types/keys.rb', line 12

def required(key, definition)
  required_definitions[key] = definition
end