class HasVersions::Version::LogCollection

Public Class Methods

new(version) click to toggle source
# File lib/has_versions/version/log.rb, line 6
def initialize(version)
  @version = version
end

Public Instance Methods

all() click to toggle source
# File lib/has_versions/version/log.rb, line 18
def all
  all = []
  walk { |v| all << v }
  all
end
Also aliased as: to_a
each()
Alias for: walk
to_a()
Alias for: all
walk() { |v| ... } click to toggle source
# File lib/has_versions/version/log.rb, line 10
def walk
  walker = Walker.new(@version)
  while v = walker.next
    yield v
  end
end
Also aliased as: each