Class: FlutterRb::Check

Inherits:
Object
  • Object
show all
Defined in:
lib/flutter_rb/checks/check.rb

Overview

A class representing a check to be performed on a project.

Constant Summary collapse

UNIMPLEMENTED_ERROR =

Error message to be raised when a method is not implemented.

'Error: missing method'

Instance Method Summary collapse

Instance Method Details

#check(project) ⇒ CheckReport

Performs the check on the given project and returns a report.

Parameters:

  • project (Project, nil)

    the project to be checked

Returns:

Raises:

  • (RuntimeError)

    if the method is not implemented



30
31
32
# File 'lib/flutter_rb/checks/check.rb', line 30

def check(project)
  raise UNIMPLEMENTED_ERROR
end

#descriptionString

Returns a description of the check.

Returns:

  • (String)

    a description of the check

Raises:

  • (RuntimeError)

    if the method is not implemented



21
22
23
# File 'lib/flutter_rb/checks/check.rb', line 21

def description
  raise UNIMPLEMENTED_ERROR
end

#nameString

Returns the name of the check.

Returns:

  • (String)

    the name of the check

Raises:

  • (RuntimeError)

    if the method is not implemented



13
14
15
# File 'lib/flutter_rb/checks/check.rb', line 13

def name
  raise UNIMPLEMENTED_ERROR
end