Class: Nit::Command::Status::State

Inherits:
Object
  • Object
show all
Defined in:
lib/nit/command/status.rb

Overview

Encapsulates the process of computing the file index from ‘git status`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(screen_state, config) ⇒ State

TODO: test me.



7
8
9
10
11
# File 'lib/nit/command/status.rb', line 7

def initialize(screen_state, config)
  @screen = Lines.new(screen_state)

  @files, @ignored = files_for(screen, config)
end

Instance Attribute Details

#filesObject (readonly)

Returns the value of attribute files.



12
13
14
# File 'lib/nit/command/status.rb', line 12

def files
  @files
end

#ignoredObject (readonly)

Returns the value of attribute ignored.



12
13
14
# File 'lib/nit/command/status.rb', line 12

def ignored
  @ignored
end

#screenObject (readonly)

Returns the value of attribute screen.



12
13
14
# File 'lib/nit/command/status.rb', line 12

def screen
  @screen
end