Class: Verifly::Applicator::Proxy
- Inherits:
-
Verifly::Applicator
- Object
- Verifly::Applicator
- Verifly::Applicator::Proxy
- Defined in:
- lib/verifly/applicator.rb
Overview
Proxy is used when applicable itself is an instance of Applicator. It just delegates #call method to applicable
Instance Attribute Summary
Attributes inherited from Verifly::Applicator
Class Method Summary collapse
Instance Method Summary collapse
-
#call(binding_, *context) ⇒ Object
Application result.
-
#source(binding_) ⇒ String?
Callback (not it’s defenition) source code.
-
#source_location(binding_) ⇒ [String, Integer]?
(file, line) location of calblack source (if exists).
Methods inherited from Verifly::Applicator
Methods included from ClassBuilder::Mixin
#build, #build_class, #buildable_classes=
Constructor Details
This class inherits a constructor from Verifly::Applicator
Class Method Details
.build_class(applicable) ⇒ Object
23 24 25 |
# File 'lib/verifly/applicator.rb', line 23 def self.build_class(applicable) self if applicable.is_a?(Applicator) end |
Instance Method Details
#call(binding_, *context) ⇒ Object
Returns application result.
30 31 32 |
# File 'lib/verifly/applicator.rb', line 30 def call(binding_, *context) applicable.call(binding_, *context) end |
#source(binding_) ⇒ String?
Returns callback (not it’s defenition) source code.
42 43 44 |
# File 'lib/verifly/applicator.rb', line 42 def source(binding_) applicable.source(binding_) end |
#source_location(binding_) ⇒ [String, Integer]?
Returns (file, line) location of calblack source (if exists).
36 37 38 |
# File 'lib/verifly/applicator.rb', line 36 def source_location(binding_) applicable.source_location(binding_) end |