Class: GmailSearchSyntax::AST::Substring
- Defined in:
- lib/gmail_search_syntax/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Substring
constructor
A new instance of Substring.
- #inspect ⇒ Object
Methods inherited from Node
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
#value ⇒ Object (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
#inspect ⇒ Object
45 46 47 |
# File 'lib/gmail_search_syntax/ast.rb', line 45 def inspect "#<Substring #{@value.inspect}>" end |