module Iolite::Statement

Public Class Methods

if_(cond) click to toggle source
# File lib/iolite/statement/if.rb, line 44
def if_ cond
        If.new cond
end
if_else(cond, then_, else_) click to toggle source
# File lib/iolite/statement/if_else.rb, line 2
def if_else cond, then_, else_
        Lazy.new { |*args|
                if Functinal.invoke(cond, *args)
                        Functinal.invoke(then_, *args)
                else
                        Functinal.invoke(else_, *args)
                end
        }
end

Private Instance Methods

if_(cond) click to toggle source
# File lib/iolite/statement/if.rb, line 44
def if_ cond
        If.new cond
end
if_else(cond, then_, else_) click to toggle source
# File lib/iolite/statement/if_else.rb, line 2
def if_else cond, then_, else_
        Lazy.new { |*args|
                if Functinal.invoke(cond, *args)
                        Functinal.invoke(then_, *args)
                else
                        Functinal.invoke(else_, *args)
                end
        }
end