Module: Erlang::ETF::Extensions::Hash
- Defined in:
- lib/phoenix/pubsub.rb
Instance Method Summary collapse
Instance Method Details
#__erlang_evolve__ ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/phoenix/pubsub.rb', line 24 def __erlang_evolve__ if size == 0 ETF::Map.new([], []) else values = flatten.map(&:__erlang_evolve__) ETF::Map.new(*values.each_slice(values.size / 2).to_a) end end |
#__erlang_type__ ⇒ Object
20 21 22 |
# File 'lib/phoenix/pubsub.rb', line 20 def __erlang_type__ :map end |