Class: Rugged::Tag::Annotation

### Home Classes Methods

### In Files

- lib/rugged/tag.rb

### Parent

Object

### Methods

- ::prettify_message
- #inspect
- #modify
- #to_hash

### Class/Module Index

Quicksearch

- Rugged
- Rugged::Branch
- Rugged::Commit
- Rugged::Credentials
- Rugged::Credentials::Default
- Rugged::Credentials::SshKey
- Rugged::Credentials::SshKeyFromAgent
- Rugged::Credentials::UserPassword
- Rugged::Diff
- Rugged::Diff::Delta
- Rugged::Diff::Hunk
- Rugged::Diff::Line
- Rugged::Index
- Rugged::Object
- Rugged::Patch
- Rugged::Reference
- Rugged::Remote
- Rugged::Repository
- Rugged::Tag
- Rugged::Tag::Annotation
- Rugged::Tree
- Rugged::Walker
- Object

No matching classes.

# Rugged::Tag::Annotation

### Public Class Methods

prettify_message(msg, strip_comments = true) click to toggle source

    # File lib/rugged/tag.rb, line 8
    def self.prettify_message(msg, strip_comments = true)
      Rugged::prettify_message(msg, strip_comments)
    end

### Public Instance Methods

inspect() click to toggle source

    # File lib/rugged/tag.rb, line 12
    def inspect
      "#<Rugged::Tag::Annotation:#{object_id} {name: #{name.inspect}, message: #{message.inspect}, target: #{target.inspect}>"
    end

modify(new_args, force=True) click to toggle source

    # File lib/rugged/tag.rb, line 25
    def modify(new_args, force=True)
      args = self.to_hash.merge(new_args)
      Tag.create(args, force)
    end

to_hash() click to toggle source

    # File lib/rugged/tag.rb, line 16
    def to_hash
      {
        :message => message,
        :name => name,
        :target => target,
        :tagger => tagger,
      }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.