Class: RubyGit::Status::Stash

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_git/status/stash.rb

Overview

Represents git stash information

API:

  • public

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count) ⇒ Stash

Initialize a new stash info object

Examples:

Stash.new(3)

Parameters:

  • number of stashed changes

API:

  • public



28
29
30
# File 'lib/ruby_git/status/stash.rb', line 28

def initialize(count)
  @count = count
end

Instance Attribute Details

#countInteger

The number of stashed changes

Examples:

stash.count #=> 3

Returns:

  • stash count

API:

  • public



19
20
21
# File 'lib/ruby_git/status/stash.rb', line 19

def count
  @count
end