Method: Zafu::Process::HTML#inspect
- Defined in:
- lib/zafu/process/html.rb
#inspect ⇒ Object
def restore_markup
# restore @markup
@markup = @markup_bak
end
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/zafu/process/html.rb', line 74 def inspect @markup.done = false res = super if @markup.tag if res =~ /\A\[(\w+)(.*)\/\]\Z/m res = "[#{$1}#{$2}]<#{@markup.tag}/>[/#{$1}]" elsif res =~ /\A\[([^\]]+)\](.*)\[\/(\w+)\]\Z/m res = "[#{$1}]#{@markup.wrap($2)}[/#{$3}]" end end res end |