lib/locat/matcher.rb
def default
      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
    end
# Default configuration if none is supplied by the project.
Default configuration if none is supplied by the project.
Default configuration if none is supplied by the project .
def default
      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
    end
def default 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 end
Default configuration if none is supplied by the project.
Default configuration if none is supplied by the project .