class SPNet::InPort

A port that exposes some functionality in a block.

@author James Tunnell

Constants

ARG_SPECS

Define ArgSpec's to use in processing hashed arguments during initialize.

Attributes

matching_class[R]

Public Class Methods

new(args) click to toggle source

A new instance of InPort. @param [Hash] args Hashed arguments for initialization. See InPort::ARG_SPECS

for details.
# File lib/spnet/core/in_port.rb, line 19
def initialize args
  hash_make args, InPort::ARG_SPECS
  @link = nil
end

Public Instance Methods

linked?() click to toggle source

Return true if @link is not nil.

# File lib/spnet/core/in_port.rb, line 36
def linked?
  !link.nil?
end