Class: Linter::CLI
- Inherits:
- 
      Object
      
        - Object
- Linter::CLI
 
- Defined in:
- lib/linter/cli.rb
Class Method Summary collapse
Class Method Details
.analyze(file_name) ⇒ Object
| 5 6 7 8 9 10 11 12 | # File 'lib/linter/cli.rb', line 5 def self.analyze(file_name) # first read the file text = File.read(file_name) result = Linter::GenderAssociation.analyze(text) puts result.inspect.colorize(:red) result = Linter::PronounAssociation.analyze(text) puts result.inspect.colorize(:red) end |