Class: GmailSearchSyntax::AST::Or
- Defined in:
- lib/gmail_search_syntax/ast.rb
Instance Attribute Summary collapse
-
#operands ⇒ Object
readonly
Returns the value of attribute operands.
Instance Method Summary collapse
-
#initialize(operands) ⇒ Or
constructor
A new instance of Or.
- #inspect ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(operands) ⇒ Or
Returns a new instance of Or.
65 66 67 |
# File 'lib/gmail_search_syntax/ast.rb', line 65 def initialize(operands) @operands = operands end |
Instance Attribute Details
#operands ⇒ Object (readonly)
Returns the value of attribute operands.
63 64 65 |
# File 'lib/gmail_search_syntax/ast.rb', line 63 def operands @operands end |
Instance Method Details
#inspect ⇒ Object
69 70 71 |
# File 'lib/gmail_search_syntax/ast.rb', line 69 def inspect "#<Or #{@operands.map(&:inspect).join(" OR ")}>" end |