class DrgDSL::Ast::NotExpression

A NotExpression is a logic text of the form

"not (expression)"

Attributes

expression[R]

Public Class Methods

new(expression) click to toggle source
# File lib/drgdsl/ast.rb, line 153
def initialize(expression)
  @expression = expression
end

Public Instance Methods

hash() click to toggle source
# File lib/drgdsl/ast.rb, line 161
def hash
  @hash ||= [type, expression].hash
end
to_hash() click to toggle source
# File lib/drgdsl/ast.rb, line 157
def to_hash
  { not: expression.to_hash }
end