lib/core/core_import_export.rb
# Internal function to determine which section/key to set in export file
#
# It should support Array or String with syntax 'section#key'
Internal function to determine which section/key to set in export file
It should support Array or String with syntax 'section#key'
Internal function to determine which section / key to set in export file It should support Array or String with syntax ' section#key '
def _export_keys_as_keypath(k, v)
      rhash_kpath = KeyPath.new(Lorj.data.first_section(k))
      if v.key?(:keys)
        if v[:keys].is_a?(String)
          section, key = Lorj.data.first_section(v[:keys])
          rhash_kpath = KeyPath.new([section, key])
        else
          rhash_kpath = KeyPath.new(v[:keys])
        end
      end
      rhash_kpath
    end
def _export_keys_as_keypath ( k , v ) rhash_kpath = KeyPath . new ( Lorj . data . first_section ( k ) ) if v . key? ( :keys ) if v [ :keys ] . is_a? ( String ) section , key = Lorj . data . first_section ( v [ :keys ] ) rhash_kpath = KeyPath . new ( [ section , key ] ) else rhash_kpath = KeyPath . new ( v [ :keys ] ) end end rhash_kpath end
Internal function to determine which section/key to set in export file
It should support Array or String with syntax 'section#key'
Internal function to determine which section / key to set in export file It should support Array or String with syntax ' section#key '
k
<not_specific>
v
<not_specific>