Class: CodeStats::Languages::CoffeeScript
- Includes:
- SharpComments
- Defined in:
- lib/code_stats/languages.rb
Instance Attribute Summary
Attributes inherited from Abstract
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
#code ⇒ Object
97 98 99 100 101 102 |
# File 'lib/code_stats/languages.rb', line 97 def code @code ||= text. substitute(/###.+?###\n?/m, ''). substitute(/^#.+?[\n\z]/m, ''). substitute(/#.+?$/, '') end |