Class: GmailSearchSyntax::AST::StringToken

Inherits:
Node
  • Object
show all
Defined in:
lib/gmail_search_syntax/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #attributes

Constructor Details

#initialize(value) ⇒ StringToken

Returns a new instance of StringToken.



29
30
31
# File 'lib/gmail_search_syntax/ast.rb', line 29

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



27
28
29
# File 'lib/gmail_search_syntax/ast.rb', line 27

def value
  @value
end

Instance Method Details

#inspectObject



33
34
35
# File 'lib/gmail_search_syntax/ast.rb', line 33

def inspect
  "#<StringToken #{@value.inspect}>"
end