lib/code_stats/languages.rb in code_stats2-0.1.6 vs lib/code_stats/languages.rb in code_stats2-0.1.7

- old
+ new

@@ -129,6 +129,14 @@ class Python < Abstract include SharpComments extensions :py end + + class Clojure < Abstract + extensions :clj + + def code + @code ||= text.substitute(/^;.+?[\n\z]/m, '').substitute(/;.+?$/, '') + end + end end \ No newline at end of file