This file is indexed.

/usr/share/gedit/plugins/snippets/ruby.xml is in gedit-common 3.18.3-0ubuntu4.

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
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<snippets language="Ruby">
  <snippet id="forin">
    <text><![CDATA[for ${1:element} in ${2:collection}
	${1:element}.$0
end]]></text>
    <description>for .. in .. end</description>
    <tag>forin</tag>
  </snippet>
  <snippet id="inject">
    <text><![CDATA[inject(${1:object}) { |${2:injection}, ${3:element}| $0 }]]></text>
    <description>inject object</description>
    <tag>inject</tag>
  </snippet>
  <snippet id="reject">
    <text><![CDATA[reject { |${1:element}| ${1:element}.$0 }]]></text>
    <description>reject element</description>
    <tag>reject</tag>
  </snippet>
  <snippet id="select">
    <text><![CDATA[select { |${1:element}| ${1:element}.$0 }]]></text>
    <description>select element</description>
    <tag>select</tag>
  </snippet>
  <snippet id="ife">
    <text><![CDATA[if ${1:condition}
	$2
else
	$3
end]]></text>
    <description>if .. else .. end</description>
    <tag>ife</tag>
  </snippet>
  <snippet id="if">
    <text><![CDATA[if ${1:condition}
	$0
end]]></text>
    <description>if .. end</description>
    <tag>if</tag>
  </snippet>
  <snippet id="case">
    <text><![CDATA[case ${1:object}
	when ${2:condition}
		$0
end]]></text>
    <description>case .. end</description>
    <tag>case</tag>
  </snippet>
  <snippet id="begin">
    <text><![CDATA[begin
	$1
rescue ${2:Exception} => ${3:e}
	$0
end]]></text>
    <description>begin .. rescue .. end</description>
    <tag>begin</tag>
  </snippet>
  <snippet id="class">
    <text><![CDATA[class ${1:class_name}
	$0
end]]></text>
    <description>class .. end</description>
    <tag>class</tag>
  </snippet>
  <snippet id="collecto">
    <text><![CDATA[collect do |${1:element}|
	${1:element}.$0
end]]></text>
    <description>collect element do</description>
    <tag>collecto</tag>
  </snippet>
  <snippet id="collect">
    <text><![CDATA[collect { |${1:element}| ${1:element}.$0 }]]></text>
    <description>collect element</description>
    <tag>collect</tag>
  </snippet>
  <snippet id="def">
    <text><![CDATA[def ${1:method_name}
	$0
end]]></text>
    <description>def .. end</description>
    <tag>def</tag>
  </snippet>
  <snippet id="do">
    <text><![CDATA[do
	$0
end]]></text>
    <description>do .. end</description>
    <tag>do</tag>
  </snippet>
  <snippet id="doo">
    <text><![CDATA[do |${1:object}|
	$0
end]]></text>
    <description>do |object| .. end</description>
    <tag>doo</tag>
  </snippet>
  <snippet id="eacho">
    <text><![CDATA[each do |${1:element}|
	${1:element}.$0
end]]></text>
    <description>each element do</description>
    <tag>eacho</tag>
  </snippet>
  <snippet id="each">
    <text><![CDATA[each { |${1:element}| ${1:element}.$0 }]]></text>
    <description>each element</description>
    <tag>each</tag>
  </snippet>
  <snippet id="each_with_indexo">
    <text><![CDATA[each_with_index do |${1:element}, ${2:idx}|
	${1:element}.$0
end]]></text>
    <description>each_with_index do</description>
    <tag>eachwithindexo</tag>
  </snippet>
  <snippet id="each_with_index">
    <text><![CDATA[each_with_index { |${1:element}, ${2:idx}| ${1:element}.$0 }]]></text>
    <description>each_with_index</description>
    <tag>eachwithindex</tag>
  </snippet>
  <snippet id=":">
    <text><![CDATA[:${1:key} => ${2:"value"}${3:, }]]></text>
    <description>hash pair</description>
    <tag>:</tag>
  </snippet>
  <snippet id="hashpointer">
    <text><![CDATA[ => ]]></text>
    <accelerator><![CDATA[<Shift><Alt>l]]></accelerator>
    <description>hash pointer</description>
  </snippet>
  <snippet id="injecto">
    <text><![CDATA[inject(${1:object}) do |${2:injection}, ${3:element}|
	$0
end]]></text>
    <description>inject object do</description>
    <tag>injecto</tag>
  </snippet>
  <snippet id="rejecto">
    <text><![CDATA[reject do |${1:element}|
	${1:element}.$0
end]]></text>
    <description>reject element do</description>
    <tag>rejecto</tag>
  </snippet>
  <snippet id="selecto">
    <text><![CDATA[select do |${1:element}|
	${1:element}.$0
end]]></text>
    <description>select element do</description>
    <tag>selecto</tag>
  </snippet>
  <snippet id="unless">
    <text><![CDATA[unless ${1:condition}
	$0
end]]></text>
    <description>unless</description>
    <tag>unless</tag>
  </snippet>
  <snippet id="when">
    <text><![CDATA[when ${1:condition}
	$0]]></text>
    <description>when</description>
    <tag>when</tag>
  </snippet>
</snippets>