This file is indexed.

/usr/lib/ruby/1.8/ramaze/snippets/string/color.rb is in libramaze-ruby1.8 2010.06.18-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze
  module CoreExtensions
    # Extensions for String

    module String
      { :reset          =>  0,
        :bold           =>  1,
        :dark           =>  2,
        :underline      =>  4,
        :blink          =>  5,
        :negative       =>  7,
        :black          => 30,
        :red            => 31,
        :green          => 32,
        :yellow         => 33,
        :blue           => 34,
        :magenta        => 35,
        :cyan           => 36,
        :white          => 37,
      }.each do |key, value|
        define_method key do
          "\e[#{value}m" + self + "\e[0m"
        end
      end
    end

  end
end