lib/tailor/ruler.rb in tailor-1.2.1 vs lib/tailor/ruler.rb in tailor-1.3.0

- old
+ new

@@ -25,11 +25,11 @@ # # First, it needs a list of Lexer events to observer. Tailor uses its Lexer # to publish events (in this case, characters or string Ruby constructs) of # interest to its observers. Rulers subscribe to those events so that they # can detect the problems they're looking for. These are defined as a Set in - # @lexer_observers. Adding to that list means the Ruler will subscribe to + # +@lexer_observers+. Adding to that list means the Ruler will subscribe to # those events. # # Example: # class MyRuler < Tailor::Ruler # def initialize @@ -76,10 +76,10 @@ end # Each ruler should redefine this for its needs. def measure(*args) raise RuntimeError, - "Ruler#measure called, but should be redefined by a real ruler." + 'Ruler#measure called, but should be redefined by a real ruler.' end # Converts the {Tailor::Ruler} name to snake case. # # @return [String] The ruler name as snake-case that represents the problem