lib/tidy/tidyerr.rb in tidy-1.0.1 vs lib/tidy/tidyerr.rb in tidy-1.1.0

- old
+ new

@@ -1,22 +1,22 @@ -# Parameterized error message +# Parameterized error message. # class Tidyerr < String - # Error parameter + # Error parameter. # attr_reader :severity, :line, :column, :message - # Create new instance + # Create new instance. # def initialize(error) super(error.to_s) parameterize end - # Parse error message into parameters (where applicable) + # Parse error message into parameters (where applicable). # - def parameterize() + def parameterize if to_str[0,4] == 'line' tokens = to_str.split(' ', 7) @severity = tokens[5][0,1] # W or E @line = tokens[1].to_i @column = tokens[3].to_i