Class: IPAccess::Set::GlobalClass

Inherits:
IPAccess::Set show all
Includes:
Singleton
Defined in:
lib/ipaccess/patches/generic.rb

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.

Constant Summary

Constants inherited from IPAccess::Set

Global

Instance Attribute Summary

Attributes inherited from IPAccess::Set

#input, #name, #output

Instance Method Summary collapse

Methods inherited from IPAccess::Set

#bidirectional=, #bidirectional?, #clear!, #empty?, #initialize, #show

Constructor Details

This class inherits a constructor from IPAccess::Set

Instance Method Details

#==(obj) ⇒ Object



46
47
48
49
# File 'lib/ipaccess/patches/generic.rb', line 46

def ==(obj)
  return true if obj.object_id == IPAccess::Set::GlobalSet.instance.object_id
  super(obj)
end

#===(obj) ⇒ Object



51
52
53
54
# File 'lib/ipaccess/patches/generic.rb', line 51

def ===(obj)
  return true if obj.object_id == IPAccess::Set::GlobalSet.instance.object_id
  super(obj)
end

#global?Boolean

Returns:

  • (Boolean)


44
# File 'lib/ipaccess/patches/generic.rb', line 44

def global?; true end

#to_sObject



56
57
58
# File 'lib/ipaccess/patches/generic.rb', line 56

def to_s
  "#<IPAccess::Set:Global>"
end