File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,18 @@ def without_list_prefix(subject)
77 def search_snippet ( body , keyword )
88 snippet = ''
99
10- offset = 0
11- while ( i = body . index ( keyword , offset ) )
12- start = [ i - MARGIN , offset ] . max
13- len = keyword . length + MARGIN
14- snippet += body [ start , len ]
15- offset = start + len
16- end
10+ offset = 0
11+ while ( i = body . index ( keyword , offset ) )
12+ start = [ i - MARGIN , offset ] . max
13+ len = keyword . length + MARGIN
14+ snippet += body [ start , len ]
15+ offset = start + len
16+ end
1717
18- if snippet . empty?
19- return body [ 0 , MARGIN * 2 ]
20- else
21- snippet
22- end
18+ if snippet . empty?
19+ return body [ 0 , MARGIN * 2 ]
20+ else
21+ snippet
22+ end
2323 end
2424end
Original file line number Diff line number Diff line change 11class List
22 def initialize ( name , id )
33 @name = name
4- @id = id
4+ @id = id
55 end
66 attr_reader :name , :id
77
8- # Ordered by the established dates. ruby-list was started in 1995.
8+ # Ordered by the established dates. ruby-list was started in 1995.
99 LISTS = [
10- List . new ( 'ruby-list' , 1 ) ,
11- List . new ( 'ruby-dev' , 2 ) ,
12- List . new ( 'ruby-core' , 3 ) ,
13- List . new ( 'ruby-talk' , 4 ) ,
10+ List . new ( 'ruby-list' , 1 ) ,
11+ List . new ( 'ruby-dev' , 2 ) ,
12+ List . new ( 'ruby-core' , 3 ) ,
13+ List . new ( 'ruby-talk' , 4 ) ,
1414 ]
1515
1616 def self . find_by_name ( name )
You can’t perform that action at this time.
0 commit comments