Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

TypeError: allocator undefined for Proc #17

@dmlary

Description

@dmlary

Does not support Procs:

[8] pry(Morrow::Console)> h = { proc: proc{} }
=> {:proc=>#<Proc:0x00007f9549c47698@(pry):8>}
[9] pry(Morrow::Console)> DeepClone.clone(h)
TypeError: allocator undefined for Proc
from (pry):9:in `clone'

However, Proc#clone should work:

[11] pry(Morrow::Console)> p = proc {}
=> #<Proc:0x00007f954d225a58@(pry):11>
[12] pry(Morrow::Console)> p.clone
=> #<Proc:0x00007f954d254ce0@(pry):11>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions