fresh_when

fresh_when(record_or_options, additional_options = {}) Instance Public methods Sets the etag, last_modified, or both on the response and renders a 304 Not Modified response if the request is already fresh. Parameters: :etag. :last_modified. :public By default the Cache-Control header is private, set this to true if you want your application to be cachable by other devices (proxy caches). Example: def show @article = Article.find(params[:id]) fresh_when(etag: @article, l

hash_dir

hash_dir(silent = false) Instance Public methods

close

close(unlink_now=false) Instance Public methods Closes the file. If unlink_now is true, then the file will be unlinked (deleted) after closing. Of course, you can choose to later call unlink if you do not unlink it now. If you don't explicitly unlink the temporary file, the removal will be delayed until the object is finalized.

open_message_stream

open_message_stream(from_addr, *to_addrs) Instance Public methods Opens a message writer stream and gives it to the block. The stream is valid only in the block, and has these methods: puts(str = '') outputs STR and CR LF. print(str) outputs STR. printf(fmt, *args) outputs sprintf(fmt,*args). write(str) outputs STR and returns the length of written bytes. <<(str) outputs STR and returns self. If a single CR (ârâ) or LF (ânâ) is found in the message, it is con

default

default(idx) Instance Public methods

abbrev

abbrev(pattern = nil) Instance Public methods Calculates the set of unambiguous abbreviations for the strings in self. require 'abbrev' %w{ car cone }.abbrev #=> {"ca" => "car", "con"=>"cone", "co" => "cone", "car"=>"car", "cone" => "cone"} The optional pattern parameter is a pattern or a string. Only input strings that match the pattern or start with the string are included in the output hash. %w{ fast boat day }.abbrev(/^.a/) #=> {"fas"=>"fast", "fa"=

x2axis_use

x2axis_use(target=nil) Instance Public methods

current_column_configinfo

current_column_configinfo(name, slot=nil) Instance Public methods

callback

callback(id, name1, name2, op) Class Public methods def ::callback

delete_namespace

delete_namespace(*names) Class Public methods