@param [Array] array
# File lib/aws/core/data.rb, line 208 def initialize array @data = array end
@api private
# File lib/aws/core/data.rb, line 245 def empty? @data.empty? 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. @api private
# File lib/aws/core/data.rb, line 228 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 214 def inspect @data.inspect end
@api private
# File lib/aws/core/data.rb, line 235 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 220 def to_ary @data end