class Set
Public Instance Methods
to_proc()
click to toggle source
Convert Set
into a Proc that takes a value and returns true if the value is an element of the set or false otherwise.
@return [Proc]
# File lib/data/functions/set.rb, line 7 def to_proc lambda do |v, *_| self.include?(v) end end