Top Level Namespace

Defined Under Namespace

Modules: HTML, HTMLTree, Test, Web Classes: Array, Date, FormMergeError, FormReader, HTMLParser, Hash, MissingAttributeException, MissingQuoteException, NoSuchHTMLTagError, Object, PHPRB, SGMLParser, StrScanParser, StrScanParserR, TagNotClosedException, TagNotNamedException, TestStackingParser

Constant Summary collapse

NOT_TOKEN =
/(.*?)(?=[<{]\/?[n$])/m
MAXFILESIZE =
1000000
Tag =
Struct::Tag

Instance Method Summary collapse

Instance Method Details

#decode64(str) ⇒ Object

:nodoc:



11
12
13
# File 'lib/web/forms.rb', line 11

def decode64(str) # :nodoc:
   str.gsub(/\./,'=').unpack("m")[0]
end

#encode64(bin) ⇒ Object

:nodoc:



7
8
9
# File 'lib/web/forms.rb', line 7

def encode64(bin) # :nodoc:
   [bin].pack("m").gsub(/\n/,'').gsub(/=/,'.')
end