diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-21 00:28:25 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-21 00:28:25 -0500 |
commit | f388725bd61d8ae246c0c8e42eaec1a2be4620ac (patch) | |
tree | 2375c551cb8f4b892471e8618d11785c95ce710b /activesupport/lib | |
parent | 47cd8b81cc19345aa68323755c78ab03f8176590 (diff) | |
download | rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.gz rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.bz2 rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.zip |
Partial revert of 2681685 premature TypeArray abstraction
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support.rb | 1 | ||||
-rw-r--r-- | activesupport/lib/active_support/typed_array.rb | 31 |
2 files changed, 0 insertions, 32 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 51067e910e..1df911a3f2 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -39,7 +39,6 @@ require 'active_support/cache' require 'active_support/dependencies' require 'active_support/deprecation' -require 'active_support/typed_array' require 'active_support/ordered_hash' require 'active_support/ordered_options' require 'active_support/option_merger' 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 |