Class: AdLint::Language

Inherits:
Object
  • Object
show all
Defined in:
lib/adlint/lang.rb

Overview

DESCRIPTION

Programming language.

Defined Under Namespace

Classes: C, Cpp

Class Method Summary collapse

Class Method Details

.of(fpath) ⇒ Object

DESCRIPTION

Detects programming language of the specified source file.

PARAMETER

fpath

Pathname – File path of the source file.

RETURN VALUE

Language – Object of the derived class of Language class.



50
51
52
53
# File 'lib/adlint/lang.rb', line 50

def self.of(fpath)
  # FIXME: Dummy implementation.
  C
end