Class: GmailSearchSyntax::AST::Operator
- Defined in:
- lib/gmail_search_syntax/ast.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Operator
constructor
A new instance of Operator.
- #inspect ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(name, value) ⇒ Operator
Returns a new instance of Operator.
16 17 18 19 |
# File 'lib/gmail_search_syntax/ast.rb', line 16 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/gmail_search_syntax/ast.rb', line 14 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'lib/gmail_search_syntax/ast.rb', line 14 def value @value end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/gmail_search_syntax/ast.rb', line 21 def inspect "#<Operator #{@name}: #{@value.inspect}>" end |