class SheepAst::Qualifier

This class is for the action to recprd the result

Public Class Methods

new(exprs, not_ = true, **options) click to toggle source
Calls superclass method SheepAst::Log::new
# File lib/sheep_ast/action/qualifier.rb, line 25
def initialize(exprs, not_ = true, **options) # rubocop:disable all
  super()
  T.unsafe(self).data_handle_init(exprs, **options)
  @not = not_
end

Public Instance Methods

qualify(data) click to toggle source
# File lib/sheep_ast/action/qualifier.rb, line 32
def qualify(data)
  ret = validate(data)
  if @not
    return !ret
  else
    return ret
  end
end