Sha256: 7aad3dabf85e7147bad5d55fd53a36072b7568f9165aaab6f70511b5b1c00847

Contents?: true

Size: 266 Bytes

Versions: 7

Compression:

Stored size: 266 Bytes

Contents

require_relative 'core'

# Extend core Array object by aliasing it's `[]` method as `call`,
# and including the `Invokable` module.
#
# @see https://ruby-doc.org/core-2.7.0/Array.html#method-i-5B-5D Array#[]
class Array
  include Invokable::Core
  alias call []
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
invokable-0.6.0 lib/invokable/array.rb
invokable-0.5.2 lib/invokable/array.rb
invokable-0.5.1 lib/invokable/array.rb
invokable-0.5.0 lib/invokable/array.rb
invokable-0.4.2 lib/invokable/array.rb
invokable-0.4.1 lib/invokable/array.rb
invokable-0.4.0 lib/invokable/array.rb