class ItgtArray

定义隐性的itgt 这样可以不带参数地调用 to_inp

Public Instance Methods

clearLast() click to toggle source
# File lib/tdl/exlib/itegration.rb, line 231
def clearLast  
    @_none_ = true
end
setLast() click to toggle source
# File lib/tdl/exlib/itegration.rb, line 227
def setLast  
    @_none_ = false
end
slast() click to toggle source
# File lib/tdl/exlib/itegration.rb, line 218
def slast  
    # $_implicit_curr_itgt_.instance_variable_set("@_none_",$_implicit_curr_itgt_.last)
    unless @_none_
        return self.last
    else 
        return nil 
    end
end
with_none_itgt() { || ... } click to toggle source
# File lib/tdl/exlib/itegration.rb, line 235
def with_none_itgt(&block)
    clearLast
    rels = yield
    setLast
    rels
end
wrap_nont_itgt(&block) click to toggle source
# File lib/tdl/exlib/itegration.rb, line 242
def wrap_nont_itgt(&block)
    _self = self
    # Proc.new do |itgt|
    #     _self.clearLast
    #     rels = block.call
    #     _self.setLast
    #     rels
    # end
    return block
end