Class: CodeStats::Languages::Clojure

Inherits:
Abstract
  • Object
show all
Defined in:
lib/code_stats/languages.rb

Instance Attribute Summary

Attributes inherited from Abstract

#text

Instance Method Summary collapse

Methods inherited from Abstract

#analyze, #characters_count, extensions, #initialize, #lines_count

Constructor Details

This class inherits a constructor from CodeStats::Languages::Abstract

Instance Method Details

#codeObject



144
145
146
# File 'lib/code_stats/languages.rb', line 144

def code
  @code ||= text.substitute(/^;.+?[\n\z]/m, '').substitute(/;.+?$/, '')
end