Sha256: ce84f2304423f2a3d958c73cb42f3157bfa78c23e5087f6289cb486d1225c612

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module Git
  class Stash

    def initialize(base, message, existing=false)
      @base = base
      @message = message
      save unless existing
    end

    def save
      @saved = @base.lib.stash_save(@message)
    end

    def saved?
      @saved
    end

    def message
      @message
    end

    def to_s
      message
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minad-git-1.1.1 lib/git/stash.rb
minad-git-1.1.2 lib/git/stash.rb
minad-git-1.1.3 lib/git/stash.rb
minad-git-1.1.5 lib/git/stash.rb