Avoid hardcoding the class name
This commit is contained in:
parent
edbb219bbd
commit
ae4b9fffd4
@ -85,19 +85,19 @@ class Options
|
|||||||
end
|
end
|
||||||
|
|
||||||
def +(o)
|
def +(o)
|
||||||
Options.new(@options + o)
|
self.class.new(@options + o)
|
||||||
end
|
end
|
||||||
|
|
||||||
def -(o)
|
def -(o)
|
||||||
Options.new(@options - o)
|
self.class.new(@options - o)
|
||||||
end
|
end
|
||||||
|
|
||||||
def &(o)
|
def &(o)
|
||||||
Options.new(@options & o)
|
self.class.new(@options & o)
|
||||||
end
|
end
|
||||||
|
|
||||||
def |(o)
|
def |(o)
|
||||||
Options.new(@options | o)
|
self.class.new(@options | o)
|
||||||
end
|
end
|
||||||
|
|
||||||
def *(arg)
|
def *(arg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user