rexml_1.8_patch.rb
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RB 代码 · 共 16 行
RB
16 行
if RUBY_VERSION=="1.8.0" module REXML module Parsers class BaseParser # Returns true if there are more events. Synonymous with !empty? def has_next? return true if @closed # THIS WAS ADDED TO FIX PROBLEM @source.read if @source.buffer.size==0 and !@source.empty? (!@source.empty? and @source.buffer.strip.size>0) or @stack.size>0 or @closed end end end endelse puts "WARNING: rexml_1.8_patch is needed on Ruby 1.8.0 and not by Ruby #{RUBY_VERSION}"end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?