Class: Knitkit::SyntaxValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/knitkit/syntax_validator.rb

Class Method Summary collapse

Class Method Details

.validate_content(file_type, content) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/knitkit/syntax_validator.rb', line 5

def validate_content(file_type, content)
  case file_type.to_sym
  when :erb
    validate_erb(content)
  else
    return nil
  end
end

.validate_file(file) ⇒ Object



14
15
16
# File 'lib/knitkit/syntax_validator.rb', line 14

def validate_file(file)
  #stubbed for later development
end