Sha256: 0ede3a0cdafea7d1b0b2531eee9de8ae8d6eb3a5c82e459264528ca98537b92b

Contents?: true

Size: 426 Bytes

Versions: 10

Compression:

Stored size: 426 Bytes

Contents

##
# Core class extensions.
module CoreExtensions
  ##
  # Extend the core Array class.
  module Array
    ##
    # Patches for GetYourRep namespace.
    module GetYourRepMutations

      # Converts an Array to a Delegation
      def to_del
        GetYourRep::Delegation.new(self)
      end

      # Converts an Array to a Representative
      def to_rep
        GetYourRep::Representative[to_h]
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
get_your_rep-0.1.9 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.8 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.7 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.6 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.5 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.4 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.3 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.2 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.1 lib/core_extensions/array/get_your_rep_mutations.rb
get_your_rep-0.1.0 lib/core_extensions/array/get_your_rep_mutations.rb