Module: Laser::Analysis::ClassRegistry
- Defined in:
- lib/laser/analysis/protocol_registry.rb
Class Method Summary (collapse)
Class Method Details
+ (Object) [](class_name)
22 23 24 25 26 27 |
# File 'lib/laser/analysis/protocol_registry.rb', line 22 def self.[](class_name) if ProtocolRegistry[class_name].any? then ProtocolRegistry[class_name].first else raise ArgumentError.new("No class found with the path #{class_name}.") end end |