Module: Erlang::ETF::Extensions::NilClass
- Defined in:
- lib/erlang/etf/extensions/nil_class.rb
Overview
nil nil
Erlang equates nil with the empty array [] while other languages do not. Even though NIL appears as a primitive in the serialization specification, BERT only uses it to represent the empty array. In order to be language agnostic, nil is encoded as a separate complex type to allow for disambiguation.
See: http://bert-rpc.org/
Instance Method Summary collapse
Instance Method Details
#__erlang_evolve__ ⇒ Object
20 21 22 |
# File 'lib/erlang/etf/extensions/nil_class.rb', line 20 def __erlang_evolve__ ::Erlang::Tuple[:bert, :nil].__erlang_evolve__ end |
#__erlang_type__ ⇒ Object
16 17 18 |
# File 'lib/erlang/etf/extensions/nil_class.rb', line 16 def __erlang_type__ :bert_nil end |