Class: CAS::Smaller

Inherits:
Condition show all
Defined in:
lib/functions/fnc-conditions.rb

Overview

This class is a Condition for left smaller function

Instance Attribute Summary

Attributes inherited from Condition

#x, #y

Instance Method Summary collapse

Methods inherited from Condition

#==, #args, #depend?, #diff, #dot_graph, #initialize, #inspect, #simplify, #subs, #to_code, #to_s

Constructor Details

This class inherits a constructor from CAS::Condition

Instance Method Details

#call(fd) ⇒ Object

Function call will evaluate left and right functions to solve the relation

* **argument**: `Hash` with feed dictionary
* **returns**: `Trueclass` or `Falseclass`


210
211
212
213
214
# File 'lib/functions/fnc-conditions.rb', line 210

def call(fd)
  CAS::Help.assert fd, Hash

  return (@x.call(fd) < @y.call(fd))
end

#representativeObject

Saves some required elements



200
201
202
203
# File 'lib/functions/fnc-conditions.rb', line 200

def representative
  @cond_type = @cond_repr = "<"
  self
end