Sha256: 09a8e7baa1f1cece40c634df2af4bc63d2348da34facf476e1108db4f19f93a4

Contents?: true

Size: 972 Bytes

Versions: 1

Compression:

Stored size: 972 Bytes

Contents

= LOCat

{Homepage}[http://rubyworks.github.com/locat] |
{Development}[http://github.com/rubyworks/locat] |
{Issue Tracker}[http://github.com/rubyworks/locat/issues] |
{Mailing List}[http://groups.google.com/group/rubyworks-mailinglist]

{<img src="http://travis-ci.org/rubyworks/locat.png" />}[http://travis-ci.org/rubyworks/locat]


== DESCRIPTION

LOCat is a fancy Lines-Of-Code analysis tool.


== SYNOPSIS

Define a `.locat` Ruby script in your project, e.g.

    match 'lib/**.rb' do |file, line|
      case line
      when /^\s*#/
        'Comment'
      when /^\s*$/
        'Blank'
      else
        'Code'
      end
    end

    match 'test/**.rb' do |file, line|
      case line
      when /^\s*#/
        'Comment'
      when /^\s*$/
        'Blank'
      else
        'Test'
      end
    end

Then run `locat`, e.g.

    $ locat -o locat.html


== COPYRIGHT

Copyright (c) 2011 Thomas Sawyer, Rubyworks

BSD 2-Clause License

See COPYING.rdoc for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locat-0.2.0 README.rdoc