class Safrano::Filter::IdentityFuncTree
Indentity Func to use as “parent” func of parenthesis expressions –> allow to handle generically parenthesis always as argument of some function
Indentity Func to use as “parent” func of parenthesis expressions –> allow to handle generically parenthesis always as argument of some function
Indentity Func to use as “parent” func of parenthesis expressions –> allow to handle generically parenthesis always as argument of some function
Public Class Methods
Safrano::Filter::FuncTree::new
# File lib/odata/filter/tree.rb, line 164 def initialize super(:__indentity) end
Public Instance Methods
# File lib/odata/filter/tree.rb, line 194 def ==(other) @children == other.children end
we can have parenthesis with one expression inside everywhere only in FuncTree
this is redefined for the function's arity Note: if you change this method, please also update arity_full_monkey?
see below
# File lib/odata/filter/tree.rb, line 172 def arity_full?(cursize) cursize >= 1 end
this is for testing only. see 99_threadsafe_tc.rb there we will monkey patch arity_full? by adding some sleeping to easily slow down a given test-thread (while the other one runs normaly)
The rule is to keep this method here exactly same as the original
"productive" one
With this trick we can test threadsafeness without touching “productive” code
# File lib/odata/filter/tree.rb, line 186 def arity_full_monkey?(cursize) cursize >= 1 end
# File lib/odata/filter/tree.rb, line 190 def edm_type @children.first.edm_type end
# File lib/odata/filter/sequel.rb, line 144 def leuqes(jh) args.first.leuqes(jh) end