Sha256: ae2078b04878b98eded30c22a4f2867a3a06b8554d3c6b92802ce71160e276ec

Contents?: true

Size: 315 Bytes

Versions: 7

Compression:

Stored size: 315 Bytes

Contents

require 'set'
require_relative 'core'

# Extend stdlib Set object by aliasing it's `include?` method as `call`,
# and including the `Invokable` module.
#
# @see https://ruby-doc.org/stdlib-2.7.0/libdoc/set/rdoc/Set.html#method-i-include-3F Set#include?
class Set
  include Invokable::Core
  alias call include?
end

Version data entries

7 entries across 7 versions & 1 rubygems

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