Module: RuboCop::Chef::CookbookOnly::ClassMethods

Included in:
RuboCop::Chef::CookbookOnly
Defined in:
lib/rubocop/chef/cookbook_only.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cookbook_only_segmentsObject



53
54
55
# File 'lib/rubocop/chef/cookbook_only.rb', line 53

def cookbook_only_segments
  @cookbook_only_segments || Hash.new(true)
end

Instance Method Details

#included(klass) ⇒ Object



57
58
59
60
# File 'lib/rubocop/chef/cookbook_only.rb', line 57

def included(klass)
  super
  klass.extend(ClassMethods)
end