module Construqt::Regions

Public Class Methods

add(name, network) click to toggle source
# File lib/construqt/regions.rb, line 21
def self.add(name, network)
  throw "region names #{name} has to be unique" if @regions[name]
  ret = Region.new(name, network)
  @regions[name] = ret
  ret
end
find(name) click to toggle source
# File lib/construqt/regions.rb, line 28
def self.find(name)
  throw "region with name #{name} not found" unless @regions[name]
  @regions[name]
end