Sha256: 34f1823c06329b67bfe555b9be5ac83cf753c79db1e9f795eab71fe3628fcd36

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

require_dependency 'scribo/application_drop'

module Scribo
  class ArrayDrop < ApplicationDrop
    delegate :each, :map, :size, :length, :first, :last, :empty?, :join, to: :@object

    def ==(other)
      @object.include?(other) || @object == other
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scribo-1.0.44 app/drops/scribo/array_drop.rb
scribo-1.0.43 app/drops/scribo/array_drop.rb
scribo-1.0.42 app/drops/scribo/array_drop.rb
scribo-1.0.41 app/drops/scribo/array_drop.rb
scribo-1.0.40 app/drops/scribo/array_drop.rb
scribo-1.0.39 app/drops/scribo/array_drop.rb
scribo-1.0.38 app/drops/scribo/array_drop.rb