Class: Querly::Pattern::Kind::Base

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

Direct Known Subclasses

Any, Conditional, Discarded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expr:) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/querly/pattern/kind.rb', line 7

def initialize(expr:)
  @expr = expr
end

Instance Attribute Details

#exprObject (readonly)

Returns the value of attribute expr.



5
6
7
# File 'lib/querly/pattern/kind.rb', line 5

def expr
  @expr
end