Class: Codeqa::Checker

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/codeqa/checker.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sourcefile) ⇒ Checker

Returns a new instance of Checker.



9
10
11
12
# File 'lib/codeqa/checker.rb', line 9

def initialize(sourcefile)
  @errors = CheckErrors.new
  @sourcefile = sourcefile
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



15
16
17
# File 'lib/codeqa/checker.rb', line 15

def errors
  @errors
end

#sourcefileObject (readonly)

Returns the value of attribute sourcefile.



14
15
16
# File 'lib/codeqa/checker.rb', line 14

def sourcefile
  @sourcefile
end

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/codeqa/checker.rb', line 18

def self.available?
  true
end