Sha256: 7665317586031dad63cf148952371f150629669d99509cddad2a009c6df7050c

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

class Array
  def self.forwardable_methods
    [:reject, :keep_if, :permutation, :to_a, :cycle, :drop, :take_while, :map, :rotate, :each_slice, :pack, :select!, :combination, :repeated_combination, :shift, :select, :reverse!, :==, :clear, :rotate!, :inspect, :iter_for_each, :sort_by!, :compact!, :|, :copy_data_simple, :nitems, :zip, :take, :rassoc, :flatten!, :join, :compact, :[]=, :frozen?, :slice!, :drop_while, :reverse_each, :shuffle, :slice, :reverse, :insert, :uniq, :first, :count, :fetch, :hash, :to_ary, :find_index, :replace, :-, :product, :iter_for_reverse_each, :pop, :push, :sort, :fill, :uniq!, :length, :&, :flatten, :repeated_permutation, :[], :shuffle!, :sort!, :sample, :include?, :<<, :dimensions, :collect, :+, :rindex, :<=>, :eql?, :indices, :collect!, :iter_for_each_index, :iter_for_each_with_index, :index, :*, :indexes, :copy_data, :delete, :to_s, :assoc, :delete_at, :unshift, :delete_if, :empty?, :reject!, :last, :size, :concat, :map!, :at, :each_index, :transpose, :values_at, :each, :enum_cons, :group_by, :enum_with_index, :entries, :with_object, :chunk, :each_with_index, :min, :inject, :one?, :partition, :enum_slice, :none?, :max_by, :any?, :flat_map, :reduce, :each_entry, :find, :minmax_by, :collect_concat, :each_cons, :member?, :max, :sort_by, :detect, :all?, :minmax, :grep, :each_with_object, :find_all]
  end
  def average
    self.sum / self.count
  end
  def extract_options
    last.is_a?(::Hash) ? last : {}
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
quandl_operation-0.1.23 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.22 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.21 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.20 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.19 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.18 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.17 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.16 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.15 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.14 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.1.13 lib/quandl/operation/core_ext/array.rb