class Gdsii::Properties

Holds a collection of Property objects. Most methods are mixed in from the Access::EnumerableGroup module.

Public Class Methods

new(properties=[]) click to toggle source

Define a new list of properties

Calls superclass method Gdsii::Group.new
# File lib/gdsii/property.rb, line 88
def initialize(properties=[])
  super()
  @records[Property] = @list = properties
end

Protected Instance Methods

validate_addition(object) click to toggle source

Used by Access::EnumerableGroup to validate addition

# File lib/gdsii/property.rb, line 101
def validate_addition(object)
  unless object.kind_of?(Property)
    raise TypeError, "Invalid addition: #{object.class}; expecting Gdsii::Property"
  end
end