Class: RubyGit::Status::Stash

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

Overview

Represents git stash information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count) ⇒ Stash

Initialize a new stash info object

Examples:

Stash.new(3)

Parameters:

  • count (Integer)

    number of stashed changes



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:

  • (Integer)

    stash count



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

def count
  @count
end