@param [Array] array
# File lib/aws/core/data.rb, line 203 def initialize array @data = array end
inject works on Core::Data::List in in 1.8.7 and 1.9.3, but not in 1.9.2 unless we define it like so. @private
# File lib/aws/core/data.rb, line 223 def inject *args, &block @data.inject(*args) do |obj,value| yield(Data.cast(obj),Data.cast(value)) end end
@return [String] Returns the inspection string for the
wrapped array.
# File lib/aws/core/data.rb, line 209 def inspect @data.inspect end
@private
# File lib/aws/core/data.rb, line 230 def kind_of? klass if klass == Array true else super end end
@return [Array] Returns the contents of this Data::List as
a raw array.
# File lib/aws/core/data.rb, line 215 def to_ary @data end