Class: Querly::Pattern::Argument::Expr

Inherits:
Base
  • Object
show all
Defined in:
lib/querly/pattern/argument.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#tail

Instance Method Summary collapse

Methods inherited from Base

#==, #attributes

Constructor Details

#initialize(expr:, tail:) ⇒ Expr

Returns a new instance of Expr.



31
32
33
34
# File 'lib/querly/pattern/argument.rb', line 31

def initialize(expr:, tail:)
  @expr = expr
  super(tail: tail)
end

Instance Attribute Details

#exprObject (readonly)

Returns the value of attribute expr.



29
30
31
# File 'lib/querly/pattern/argument.rb', line 29

def expr
  @expr
end