Sha256: 836ff35baf9eb7caeca255401054556abb8175dfbbba10a22fd331cc316a943e

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

module SPNet

# Locate a port based on the block and port name, rather than an object reference.
#
# @author James Tunnell
class PortLocater
  include Hashmake::HashMakeable
  
  # Define arg specs to use in processing hashed arguments during #initialize.
  ARG_SPECS = {
    :block_name => arg_spec(:reqd => true, :type => String),
    :port_name => arg_spec(:reqd => true, :type => String),
  }
  
  attr_reader :block_name, :port_name
  
  def initialize args
    hash_make ARG_SPECS, args
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spnet-0.1.7 lib/spnet/storage/port_locater.rb
spnet-0.1.6 lib/spnet/storage/port_locater.rb
spnet-0.1.5 lib/spnet/storage/port_locater.rb