class RJGit::Note
Constants
- DEFAULT_REF
Attributes
annotates[R]
jnote[R]
message[R]
Public Class Methods
new(repository, note)
click to toggle source
# File lib/note.rb, line 7 def initialize(repository, note) @jrepo = RJGit.repository_type(repository) @jnote = RJGit.note_type(note) @message = @jrepo.open(@jnote.getData()).get_bytes.to_a.pack('c*').force_encoding('UTF-8') @annotates = @jnote.to_s[5..44] end
Public Instance Methods
to_s()
click to toggle source
# File lib/note.rb, line 14 def to_s @message end