Class: CAS::SmallerEqual
- Defined in:
- lib/functions/fnc-conditions.rb
Overview
This class is a Condition for left smaller or equal function
Instance Attribute Summary
Attributes inherited from Condition
Instance Method Summary collapse
-
#call(fd) ⇒ Object
Function call will evaluate left and right functions to solve the relation.
-
#representative ⇒ Object
Saves some required elements.
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`
264 265 266 267 268 |
# File 'lib/functions/fnc-conditions.rb', line 264 def call(fd) CAS::Help.assert fd, Hash return (@x.call(fd) <= @y.call(fd)) end |
#representative ⇒ Object
Saves some required elements
253 254 255 256 257 |
# File 'lib/functions/fnc-conditions.rb', line 253 def representative @cond_type = "<=" @cond_repr = "≤" self end |