Method: QB::Ansible::Module::Response#convert_key
- Defined in:
- lib/qb/ansible/module/response.rb
#convert_key(key) ⇒ Symbol
Uses Symbol keys, and they can not be empty. Will convert non-empty strings to their symbols.
170 171 172 173 174 |
# File 'lib/qb/ansible/module/response.rb', line 170 def convert_key key t.match key, t.non_empty_str, :to_sym.to_proc, t.non_empty_sym, key end |