Class: GmailSearchSyntax::AST::Substring

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) ⇒ Substring

Returns a new instance of Substring.



41
42
43
# File 'lib/gmail_search_syntax/ast.rb', line 41

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



39
40
41
# File 'lib/gmail_search_syntax/ast.rb', line 39

def value
  @value
end

Instance Method Details

#inspectObject



45
46
47
# File 'lib/gmail_search_syntax/ast.rb', line 45

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