Class: Mailmate::AST::CompareNode Private
- Inherits:
-
Struct
- Object
- Struct
- Mailmate::AST::CompareNode
- Defined in:
- lib/mailmate/ast.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
path: array of strings, e.g. [“from”, “name”] or [“#any-address”] op: one of “=”, “!=”, “~”, “!~”, “<”, “<=”, “>”, “>=” flags: array of single-letter strings, e.g. [“c”], [“c”, “a”], or [] value: a *Node (LiteralStringNode, NumberNode, RelativeDateNode, AbsoluteDateNode, VarRefNode)
Instance Attribute Summary collapse
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#op ⇒ Object
Returns the value of attribute op.
-
#path ⇒ Object
Returns the value of attribute path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #inspect ⇒ Object private
Instance Attribute Details
#flags ⇒ Object
Returns the value of attribute flags
17 18 19 |
# File 'lib/mailmate/ast.rb', line 17 def flags @flags end |
#op ⇒ Object
Returns the value of attribute op
17 18 19 |
# File 'lib/mailmate/ast.rb', line 17 def op @op end |
#path ⇒ Object
Returns the value of attribute path
17 18 19 |
# File 'lib/mailmate/ast.rb', line 17 def path @path end |
#value ⇒ Object
Returns the value of attribute value
17 18 19 |
# File 'lib/mailmate/ast.rb', line 17 def value @value end |
Instance Method Details
#inspect ⇒ Object
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.
18 |
# File 'lib/mailmate/ast.rb', line 18 def inspect; "Compare(#{path.join(".")} #{op}#{flags.empty? ? "" : "[#{flags.join}]"} #{value.inspect})"; end |