class Set

List of backports waiting to be accepted in the backports gem

Public Instance Methods

compare_by_identity() click to toggle source

Defined in 2.4.0

Hash#compare_by_identity appeared in ruby 1.9.1

# File lib/roby/backports.rb, line 6
def compare_by_identity
    @hash.compare_by_identity
end
compare_by_identity?() click to toggle source

Defined in 2.4.0

Hash#compare_by_identity? appeard in ruby 1.9.1

# File lib/roby/backports.rb, line 13
def compare_by_identity?
    @hash.compare_by_identity?
end
inspect() click to toggle source
# File lib/roby/support.rb, line 56
def inspect
    to_s
end
intersect?(set) click to toggle source
# File lib/roby/support.rb, line 61
def intersect?(set)
    set.is_a?(Set) or raise ArgumentError, "value must be a set"
    if size < set.size
        any? { |o| set.include?(o) }
    else
        set.any? { |o| include?(o) }
    end
end