bravo_presenter 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ class BravoPresenter::Collection
|
|
2
2
|
include Enumerable
|
3
3
|
attr_accessor :collection, :template
|
4
4
|
|
5
|
+
alias_method :size, :count
|
6
|
+
alias_method :length, :count
|
5
7
|
|
6
8
|
# nodoc
|
7
9
|
def initialize(collection, template)
|
@@ -18,4 +20,10 @@ class BravoPresenter::Collection
|
|
18
20
|
end
|
19
21
|
|
20
22
|
|
23
|
+
# nodoc
|
24
|
+
def empty?
|
25
|
+
count == 0
|
26
|
+
end
|
27
|
+
|
28
|
+
|
21
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bravo_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash:
|
76
|
+
hash: 1006324689
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash:
|
85
|
+
hash: 1006324689
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.10
|