Class: Vanguard::DSL::Evaluator
- Inherits:
-
Object
- Object
- Vanguard::DSL::Evaluator
- Includes:
- Adamantium::Flat
- Defined in:
- lib/vanguard/dsl/evaluator.rb
Defined Under Namespace
Classes: Connector
Instance Attribute Summary collapse
-
#arguments ⇒ Array
readonly
private
Return arguments array.
-
#klass ⇒ Class
readonly
private
Return klass.
-
#options ⇒ Hash
readonly
private
Return options hash.
Instance Method Summary collapse
-
#rules ⇒ Enumerable<Rule>
private
Return rules.
Instance Attribute Details
#arguments ⇒ Array (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return arguments array
28 29 30 |
# File 'lib/vanguard/dsl/evaluator.rb', line 28 def arguments @arguments end |
#klass ⇒ Class (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return klass
12 13 14 |
# File 'lib/vanguard/dsl/evaluator.rb', line 12 def klass @klass end |
#options ⇒ Hash (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return options hash
20 21 22 |
# File 'lib/vanguard/dsl/evaluator.rb', line 20 def @options end |
Instance Method Details
#rules ⇒ Enumerable<Rule>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return rules
36 37 38 39 40 |
# File 'lib/vanguard/dsl/evaluator.rb', line 36 def rules klass.run(arguments, ).map do |rule| connector.connect(rule) end end |