Class: StyleCop::StyleGuide

Inherits:
Object
  • Object
show all
Defined in:
lib/style_cop/style_guide.rb

Instance Method Summary collapse

Constructor Details

#initialize(styleguide) ⇒ StyleGuide

Returns a new instance of StyleGuide.



3
4
5
# File 'lib/style_cop/style_guide.rb', line 3

def initialize(styleguide)
  @styleguide = styleguide
end

Instance Method Details

#find(selector_key) ⇒ Object



7
8
9
# File 'lib/style_cop/style_guide.rb', line 7

def find(selector_key)
  Selector.new(styleguide.find("#{selector_key}.style-cop-pattern"))
end