Module: CodeStats::Languages::SharpComments

Included in:
CoffeeScript, Python, Ruby, Yaml
Defined in:
lib/code_stats/languages.rb

Instance Method Summary collapse

Instance Method Details

#codeObject



57
58
59
# File 'lib/code_stats/languages.rb', line 57

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