Module: AssOle::Snippets::Shared::Map

Defined in:
lib/ass_ole/snippets/shared/mapped.rb

Overview

Snippet for worcking with 1C Map obect

Instance Method Summary collapse

Instance Method Details

#map(hash_ = nil, **hash__) ⇒ WIN32OLE

Note:

If key.is_a? Symbol key will be converts to String

Returns new Map builded from hash

Returns:

  • (WIN32OLE)


29
30
31
32
# File 'lib/ass_ole/snippets/shared/mapped.rb', line 29

def map(hash_ = nil, **hash__)
  hash_ = hash__ if hash_.nil?
  _hash_to_object(hash_, newObject('Map'))
end