Sha256: 9352ccb1a6264b6541ae3de844cb78e9c4556655df9243dea6b49888cfbac660

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

require_relative '../invokable'

# 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
  alias call []
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
invokable-0.3.0 lib/invokable/array.rb
invokable-0.2.2 lib/invokable/array.rb