aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-21 00:28:25 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-21 00:28:25 -0500
commitf388725bd61d8ae246c0c8e42eaec1a2be4620ac (patch)
tree2375c551cb8f4b892471e8618d11785c95ce710b /activesupport/lib/active_support
parent47cd8b81cc19345aa68323755c78ab03f8176590 (diff)
downloadrails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.gz
rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.bz2
rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.zip
Partial revert of 2681685 premature TypeArray abstraction
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/typed_array.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/activesupport/lib/active_support/typed_array.rb b/activesupport/lib/active_support/typed_array.rb
deleted file mode 100644
index 1a4d8a8faf..0000000000
--- a/activesupport/lib/active_support/typed_array.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-module ActiveSupport
- class TypedArray < Array
- def self.type_cast(obj)
- obj
- end
-
- def initialize(*args)
- super(*args).map! { |obj| self.class.type_cast(obj) }
- end
-
- def <<(obj)
- super(self.class.type_cast(obj))
- end
-
- def concat(array)
- super(array.map! { |obj| self.class.type_cast(obj) })
- end
-
- def insert(index, obj)
- super(index, self.class.type_cast(obj))
- end
-
- def push(*objs)
- super(*objs.map { |obj| self.class.type_cast(obj) })
- end
-
- def unshift(*objs)
- super(*objs.map { |obj| self.class.type_cast(obj) })
- end
- end
-end