enabled?

GC::Profiler.enabled? â true or false Class Public methods The current status of GC profile mode.

atomic_write

atomic_write(file_name, temp_dir = Dir.tmpdir) Class Public methods Write to a file atomically. Useful for situations where you don't want other processes or threads to see half-written files. File.atomic_write('important.file') do |file| file.write('hello') end If your temp directory is not on the same filesystem as the file you're trying to write, you can provide a different temporary directory. File.atomic_write('/data/something.important', '/data/tmp') do |file| file.write

detached?

detached?() Instance Public methods

to_feed

to_feed(rss, item) Instance Public methods

new

Digest.new(string [, data]) â Digest Class Public methods Creates a Digest instance based on string, which is either the ln (long name) or sn (short name) of a supported digest algorithm. If data (a String) is given, it is used as the initial input to the Digest instance, i.e. digest = OpenSSL::Digest.new('sha256', 'digestdata') is equal to digest = OpenSSL::Digest.new('sha256') digest.update('digestdata') Example digest = OpenSSL::Digest.new('sha1')

signed_or_encrypted

signed_or_encrypted() Instance Public methods Returns the signed or encrypted jar, preferring encrypted if secret_key_base is set. Used by ActionDispatch::Session::CookieStore to avoid the need to introduce new cookie stores.

remove

remove() Instance Public methods Removes this Attribute from the tree, and returns true if successfull This method is usually not called directly.

accept_verbatim

accept_verbatim(markup_item) Instance Public methods Alias for: do_nothing

ungetbyte

ios.ungetbyte(string) â nilios.ungetbyte(integer) â nil Instance Public methods Pushes back bytes (passed as a parameter) onto ios, such that a subsequent buffered read will return it. Only one byte may be pushed back before a subsequent read operation (that is, you will be able to read only the last of several bytes that have been pushed back). Has no effect with unbuffered reads (such as IO#sysread). f = File.new("testfile") #=> #<File:testfile> b = f.getbyte

new

new(src) Class Public methods