Method: Inspec::ProfileContext#subcontext_by_name
- Defined in:
- lib/inspec/profile_context.rb
#subcontext_by_name(name) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inspec/profile_context.rb', line 92 def subcontext_by_name(name) found = @lib_subcontexts.find { |c| c.profile_id == name } if !found @lib_subcontexts.each do |c| found = c.subcontext_by_name(name) break if found end end found end |