Class: Erlang::ETF::Port
- Inherits:
-
Object
- Object
- Erlang::ETF::Port
- Includes:
- Term
- Defined in:
- lib/erlang/etf/port.rb
Overview
1 | N | 4 | 1 |
---|---|---|---|
102 | Node | ID | Creation |
Encode a port object (obtained form open_port/2
). The ID
is a
node specific identifier for a local port. Port operations are
not allowed across node boundaries. The Creation
works just like
in REFERENCE_EXT
.
(see PORT_EXT
)
Constant Summary
Constants included from Term
Term::BERT_PREFIX, Term::BIN_LSB_PACK, Term::BIN_MSB_PACK
Instance Method Summary collapse
-
#initialize(node, id, creation) ⇒ Port
constructor
A new instance of Port.
Methods included from Term
#==, #__erlang_evolve__, #__erlang_type__, #__ruby_evolve__, included
Constructor Details
#initialize(node, id, creation) ⇒ Port
Returns a new instance of Port.
33 34 35 36 37 |
# File 'lib/erlang/etf/port.rb', line 33 def initialize(node, id, creation) @node = node @id = id @creation = creation end |