Method: VCLog::ChangeLog#before
- Defined in:
- lib/vclog/changelog.rb
#before(date_limit) ⇒ Object
Return a new changelog with entries occuring before the given date limit.
114 115 116 117 |
# File 'lib/vclog/changelog.rb', line 114 def before(date_limit) before = changes.select{ |entry| entry.date <= date_limit + DAY } self.class.new(before) end |