class Olelo::Version
Version
object
Attributes
comment[R]
date[R]
id[R]
parents[R]
Public Class Methods
new(id, author, date, comment, parents, head)
click to toggle source
# File lib/olelo/repository.rb, line 7 def initialize(id, author, date, comment, parents, head) @id, @author, @date, @comment, @parents, @head = id, author, date, comment, parents, head end
short(id)
click to toggle source
Shortens given version id
@param [String] long version id @return [String] shortened version id @api public
# File lib/olelo/repository.rb, line 24 def self.short(id) Repository.instance.short_version(id) end
Public Instance Methods
==(other)
click to toggle source
Check equality of versions
@param [Version, String] other version @return [Boolean] @api public
# File lib/olelo/repository.rb, line 41 def ==(other) other.to_s == id end
short()
click to toggle source
Returns shortened unique version id
@return [String] shortened version id @api public
# File lib/olelo/repository.rb, line 15 def short Version.short(id) end
to_s()
click to toggle source
Return version id
@return [String] @api public
# File lib/olelo/repository.rb, line 32 def to_s id end