Module: Origen::Parameters::ClassMethods
- Defined in:
- lib/origen/parameters.rb
Instance Method Summary collapse
Instance Method Details
#parameters_context(obj = nil) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/origen/parameters.rb', line 82 def parameters_context(obj = nil) if obj if obj.is_a?(Symbol) valid = [:top, :dut].include?(obj) end valid ||= obj.is_a?(String) unless valid fail 'Invalid parameters context, must be :top or a string path to a model object' end @parameters_context = obj else @parameters_context end end |