class StyleCop::StyleGuide

Attributes

styleguide[R]

Public Class Methods

new(styleguide) click to toggle source
# File lib/style_cop/style_guide.rb, line 3
def initialize(styleguide)
  @styleguide = styleguide
end

Public Instance Methods

find(selector_key) click to toggle source
# File lib/style_cop/style_guide.rb, line 7
def find(selector_key)
  Selector.new(styleguide.find("#{selector_key}.style-cop-pattern"))
end