History

Add EntryIndex#blank?

Thibaut committed 11 years ago

Commit ecf774e1 parent 1655a002 files · +9 −3Browse files

Showing the changes to lib (1 of 2 files). Show all

Unified · Split

lib/docs/core/entry_index.rb+2−0
@@ -21,6 +21,8 @@ module Docs · 20 unmodified lines
2121 @entries.empty?
2222 end
2323
24+ alias_method :blank?, :empty?
25+
2426 def length
2527 @entries.length
2628 end