Class: HasVersions::Version::LogCollection
- Inherits:
-
Object
- Object
- HasVersions::Version::LogCollection
- Includes:
- Enumerable
- Defined in:
- lib/has_versions/version/log.rb
Defined Under Namespace
Classes: Walker
Instance Method Summary collapse
- #all ⇒ Object (also: #to_a)
-
#initialize(version) ⇒ LogCollection
constructor
A new instance of LogCollection.
- #walk ⇒ Object (also: #each)
Constructor Details
#initialize(version) ⇒ LogCollection
Returns a new instance of LogCollection.
6 7 8 |
# File 'lib/has_versions/version/log.rb', line 6 def initialize(version) @version = version end |
Instance Method Details
#all ⇒ Object Also known as: to_a
18 19 20 21 22 |
# File 'lib/has_versions/version/log.rb', line 18 def all all = [] walk { |v| all << v } all end |