In Files

Parent

Files

BaseFormater

Attributes

current[RW]
errors[RW]
warnings[RW]

Public Class Methods

new(out, filter = nil) click to toggle source
# File lib/saikuro.rb, line 621
def initialize(out, filter = nil)
  @out = out
  @filter = filter
  reset_data
end

Public Instance Methods

reset_data() click to toggle source
# File lib/saikuro.rb, line 641
def reset_data
  @warnings = Array.new
  @errors = Array.new
  @current = ""
end
warn_error?(num, marker) click to toggle source
# File lib/saikuro.rb, line 627
def warn_error?(num, marker)
  klass = ""

  if @filter.error?(num)
    klass = ' class="error"'
    @errors<< [@current, marker, num]
  elsif @filter.warn?(num)
    klass = ' class="warning"'
    @warnings<< [@current, marker, num]
  end

  klass
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.