Class: Ruleby::Ferrari::NotOperatorBuilder

Inherits:
AtomBuilder
  • Object
show all
Defined in:
lib/dsl/ferrari.rb

Constant Summary collapse

NOT_PROC =
lambda {|x,y| x != y}

Constants inherited from AtomBuilder

AtomBuilder::EQ_PROC, AtomBuilder::GTE_PROC, AtomBuilder::GT_PROC, AtomBuilder::LTE_PROC, AtomBuilder::LT_PROC, AtomBuilder::MATCH_PROC, AtomBuilder::TRUE_PROC

Instance Attribute Summary

Attributes inherited from AtomBuilder

#bindings, #block, #deftemplate, #name, #tag

Instance Method Summary collapse

Methods inherited from AtomBuilder

#<, #<=, #=~, #>, #>=, #build_atoms, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Ruleby::Ferrari::AtomBuilder

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ruleby::Ferrari::AtomBuilder

Instance Method Details

#==(value) ⇒ Object



474
475
476
477
# File 'lib/dsl/ferrari.rb', line 474

def ==(value)
  create_block value, NOT_PROC
  self
end