class OperationSet

Attributes

list[R]

Public Class Methods

new(sat) click to toggle source
# File lib/satops/operator.rb, line 200
def initialize(sat)
  @sat=sat
  @list=[]
end

Public Instance Methods

-(val) click to toggle source
# File lib/satops/operator.rb, line 232
def -(val)
  result=[]
  @list.each do |e|
    result << e unless val.include?(e)
  end
  result
end
delete_all() click to toggle source
# File lib/satops/operator.rb, line 211
def delete_all
  self.fetch_all.each do |obj|
    obj.delete(@sat)
  end
end
extra(list) click to toggle source
# File lib/satops/operator.rb, line 205
def extra(list)
  list.each do |obj|
    obj.delete(@sat)
  end
end
fetch() click to toggle source
# File lib/satops/operator.rb, line 217
def fetch
  @list=fetch_all
end