Class: Status
- Inherits:
-
Object
- Object
- Status
- Defined in:
- lib/sub/status.rb
Defined Under Namespace
Classes: Line
Instance Method Summary collapse
- #externals ⇒ Object
-
#initialize(text) ⇒ Status
constructor
A new instance of Status.
- #modified ⇒ Object
- #unversioned ⇒ Object
Constructor Details
Instance Method Details
#externals ⇒ Object
39 40 41 |
# File 'lib/sub/status.rb', line 39 def externals @lines.select { |line| line.external? }.collect {|line| line.path} end |
#modified ⇒ Object
35 36 37 |
# File 'lib/sub/status.rb', line 35 def modified @lines.select { |line| line.modified? }.collect {|line| line.path} end |
#unversioned ⇒ Object
43 44 45 |
# File 'lib/sub/status.rb', line 43 def unversioned @lines.select { |line| line.unversioned? }.collect {|line| line.path} end |