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
38 39 40 |
# File 'lib/sub/status.rb', line 38 def externals @lines.select { |line| line.external? }.collect {|line| line.path} end |
#modified ⇒ Object
34 35 36 |
# File 'lib/sub/status.rb', line 34 def modified @lines.select { |line| line.modified? }.collect {|line| line.path} end |
#unversioned ⇒ Object
42 43 44 |
# File 'lib/sub/status.rb', line 42 def unversioned @lines.select { |line| line.unversioned? }.collect {|line| line.path} end |