Class: IPAccess::Set::GlobalClass
Overview
This is global access set, used by default by all socket handling classes with enabled IP access control. It has just one instance called IPAccess::Set.Global. It is present only when patching engine is loaded.
Instance Method Summary
collapse
Constructor Details
This class inherits a constructor from IPAccess::Set
Instance Method Details
#==(obj) ⇒ Object
32
33
34
35
|
# File 'lib/ipaccess/patches/generic.rb', line 32
def ==(obj)
return true if obj.object_id == IPAccess::Set::GlobalSet.instance.object_id
super(obj)
end
|
#===(obj) ⇒ Object
37
38
39
40
|
# File 'lib/ipaccess/patches/generic.rb', line 37
def ===(obj)
return true if obj.object_id == IPAccess::Set::GlobalSet.instance.object_id
super(obj)
end
|
#global? ⇒ Boolean
30
|
# File 'lib/ipaccess/patches/generic.rb', line 30
def global?; true end
|
#to_s ⇒ Object
42
43
44
|
# File 'lib/ipaccess/patches/generic.rb', line 42
def to_s
"#<IPAccess::Set:Global>"
end
|