lib/clamsy/tenjin.rb
##
## stop capturing.
## returns captured string.
## see start_capture()'s document.
##
stop capturing.
returns captured string.
stop capturing . returns captured string .
def stop_capture(store_to_context=true)
        output = self._buf[@_start_position..-1]
        self._buf[@_start_position..-1] = ''
        @_start_position = nil
        if @_capture_varname
          self.instance_variable_set("@#{@_capture_varname}", output) if store_to_context
          @_capture_varname = nil
        end
        return output
      end
def stop_capture ( store_to_context = true ) output = self . _buf [ @_start_position .. - 1 ] self . _buf [ @_start_position .. - 1 ] = '' @_start_position = nil if @_capture_varname self . instance_variable_set ( "@#{@_capture_varname}" , output ) if store_to_context @_capture_varname = nil end return output end
stop capturing.
stop capturing .
store_to_context