Method: RTKIT::Beam#add_collimator
- Defined in:
- lib/rtkit/beam.rb
#add_collimator(coll) ⇒ Object
Adds a Collimator instance to this Beam.
134 135 136 137 138 |
# File 'lib/rtkit/beam.rb', line 134 def add_collimator(coll) raise ArgumentError, "Invalid argument 'coll'. Expected Collimator, got #{coll.class}." unless coll.is_a?(Collimator) @collimators << coll unless @associated_collimators[coll.type] @associated_collimators[coll.type] = coll end |