Method: Fable::NativeFunctionOperations#and
- Defined in:
- lib/fable/native_function_operations.rb
#and(x, y) ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/fable/native_function_operations.rb', line 59 def and(x,y) if x.is_a?(InkList) return (x.size > 0 && y.size > 0) ? 1 : 0 else return (x != 0 && y != 0) ? 1 : 0 end end |