Class: Foxtail::Bundle::Parser::AST::StringLiteral

Inherits:
Data
  • Object
show all
Defined in:
lib/foxtail/bundle/parser/ast.rb,
lib/foxtail/bundle/parser/ast.rb

Overview

String literal expression in Fluent patterns

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ StringLiteral

Returns a new instance of StringLiteral.

Parameters:

  • value (#to_s)

    The string value (will be converted to String)



15
# File 'lib/foxtail/bundle/parser/ast.rb', line 15

def initialize(value:) = super(value: value.to_s)

Instance Attribute Details

#valueObject (readonly)

String

The string value



13
14
15
# File 'lib/foxtail/bundle/parser/ast.rb', line 13

def value
  @value
end