Class: Coppertone::Mechanism::All
Overview
Implements the All mechanism. To reduce unnecessary object creation, this class is a singleton since all All mechanisms behave identically.
Constant Summary
collapse
- SINGLETON =
new
Instance Attribute Summary
#arguments
Class Method Summary
collapse
Instance Method Summary
collapse
build, class_builder, #context_dependent?, dns_lookup_term?, #dns_lookup_term?, #includes_ptr?, register, #to_s
Constructor Details
#initialize ⇒ All
Returns a new instance of All.
20
21
22
|
# File 'lib/coppertone/mechanism/all.rb', line 20
def initialize
super('')
end
|
Class Method Details
.create(attributes) ⇒ Object
6
7
8
9
10
|
# File 'lib/coppertone/mechanism/all.rb', line 6
def self.create(attributes)
raise InvalidMechanismError unless attributes.blank?
SINGLETON
end
|
.instance ⇒ Object
12
13
14
|
# File 'lib/coppertone/mechanism/all.rb', line 12
def self.instance
SINGLETON
end
|
.label ⇒ Object
16
17
18
|
# File 'lib/coppertone/mechanism/all.rb', line 16
def self.label
'all'
end
|
Instance Method Details
#match?(_macro_context, _request_context) ⇒ Boolean
26
27
28
|
# File 'lib/coppertone/mechanism/all.rb', line 26
def match?(_macro_context, _request_context)
true
end
|