array-hooked 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
 
2
2
  module ::Array::Hooked::ArrayInterface
3
-
3
+
4
+ include ::IdentifiesAs
5
+
4
6
  instances_identify_as!( ::Array::Hooked )
5
7
 
6
8
  extend ::Module::Cluster
@@ -766,13 +768,7 @@ module ::Array::Hooked::ArrayInterface
766
768
 
767
769
  def clear
768
770
 
769
- indexes = [ ]
770
-
771
- count.times do |this_time|
772
- indexes.push( count - this_time - 1 )
773
- end
774
-
775
- delete_at_indexes( *indexes )
771
+ delete_if { true }
776
772
 
777
773
  return self
778
774
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array-hooked
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
12
+ date: 2012-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: identifies_as
@@ -55,7 +55,7 @@ files:
55
55
  - lib/array/namespaces.rb
56
56
  - lib/array/requires.rb
57
57
  - lib/array-hooked.rb
58
- - spec/Array/Hooked_spec.rb
58
+ - spec/array/hooked_spec.rb
59
59
  - README.md
60
60
  - CHANGELOG.rdoc
61
61
  homepage: http://rubygems.org/gems/array-hooked