Sha256: c38f4e1f49b221c1b15eccaed2df3dde8615066a6743688f91a7b360e88a1de7

Contents?: true

Size: 1.48 KB

Versions: 7

Compression:

Stored size: 1.48 KB

Contents

class Array
  def self.forwardable_methods
    [:reject, :keep_if, :to_a, :cycle, :drop, :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

7 entries across 7 versions & 1 rubygems

Version Path
quandl_operation-0.4.1 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.4.0 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.3.2 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.3.1 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.3.0 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.2.1 lib/quandl/operation/core_ext/array.rb
quandl_operation-0.2.0 lib/quandl/operation/core_ext/array.rb