Module: Querly::Pattern::Kind::Negatable

Included in:
Conditional, Discarded
Defined in:
lib/querly/pattern/kind.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#negatedObject (readonly)

Returns the value of attribute negated.



13
14
15
# File 'lib/querly/pattern/kind.rb', line 13

def negated
  @negated
end

Instance Method Details

#initialize(expr:, negated:) ⇒ Object



15
16
17
18
# File 'lib/querly/pattern/kind.rb', line 15

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