Method: Chef::Node::ImmutableArray#safe_dup
- Defined in:
- lib/chef/node/immutable_collections.rb
permalink #safe_dup(e) ⇒ Object
For elements like Fixnums, true, nil…
86 87 88 89 90 |
# File 'lib/chef/node/immutable_collections.rb', line 86 def safe_dup(e) e.dup rescue TypeError e end |