Class: Dry::Logic::Operations::Attr

Inherits:
Key show all
Defined in:
lib/dry/logic/operations/attr.rb

Instance Attribute Summary

Attributes inherited from Key

#evaluator, #path

Attributes inherited from Unary

#rule

Attributes inherited from Abstract

#options, #rules

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Key

#[], #ast, #call, #initialize, new, #to_s

Methods inherited from Unary

#ast, #initialize, #to_s

Methods inherited from Abstract

#curry, #id, #initialize, #new, #to_ast, #with

Methods included from Dry::Logic::Operators

#and, #or, #then, #xor

Constructor Details

This class inherits a constructor from Dry::Logic::Operations::Key

Class Method Details

.evaluator(name) ⇒ Object



7
8
9
# File 'lib/dry/logic/operations/attr.rb', line 7

def self.evaluator(name)
  Evaluator::Attr.new(name)
end

Instance Method Details

#typeObject



11
12
13
# File 'lib/dry/logic/operations/attr.rb', line 11

def type
  :attr
end