| Class | Vcs::StatusEntry |
| In: |
lib/vcs/status.rb
|
| Parent: | Object |
| category | [RW] | |
| comment | [RW] | |
| cpy | [RW] | |
| file | [RW] | |
| file_st | [RW] | |
| line | [RW] | |
| prop_st | [RW] |
# File lib/vcs/status.rb, line 13 def initialize ( high_line, aString ) @high_line = high_line m = /^(.)(.)(.)(.)(.\s*)(.*)$/.match(aString) line, file_st, bl1, prop_st, cpy, bl2, file = m.to_a @file = file.to_path @file_st, @prop_st, @cpy = file_st[0], prop_st[0], cpy[0] @category = Vcs.classify(@file, @file_st) if @file_st == ?? @file_st = @@category_symbol[@category] || @file_st end @line = "#{@file_st.chr}#{bl1}#{prop_st}#{cpy}#{bl2}#{file}" end