eof

ios.eof â true or falseios.eof? â true or false Instance Public methods Returns true if ios is at end of file that means there are no more data to read. The stream must be opened for reading or an IOError will be raised. f = File.new("testfile") dummy = f.readlines f.eof #=> true If ios is a stream such as pipe or socket, IO#eof? blocks until the other end sends some data or closes it. r, w = IO.pipe Thread.new { sleep 1; w.close } r.eof? #=> true after 1 second bl

to_s

to_s() Instance Public methods

before_filters

before_filters() Instance Public methods

block_length

hmac.block_length â Integer Instance Public methods Returns the block length in bytes of the hmac.

emulate_booleans

emulate_booleans Class Public methods By default, the MysqlAdapter will consider all columns of type tinyint(1) as boolean. If you wish to disable this emulation (which was the default behavior in versions 0.13.1 and earlier) you can add the following line to your application.rb file: ActiveRecord::ConnectionAdapters::Mysql[2]Adapter.emulate_booleans = false

pick_font

pick_font(size, attrs) Instance Public methods A font chooser routine. html = #pick_font

content_tag

content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block) Instance Public methods Returns an HTML block tag of type name surrounding the content. Add HTML attributes by passing an attributes hash to options. Instead of passing the content as an argument, you can also use a block in which case, you pass your options as the second parameter. Set escape to false to disable attribute value escaping. Options The options hash is used with attributes

favicon_link_tag

favicon_link_tag(source='favicon.ico', options={}) Instance Public methods Returns a link loading a favicon file. You may specify a different file in the first argument. The helper accepts an additional options hash where you can override ârelâ and âtypeâ. Options :rel - Specify the relation of this link, defaults to 'shortcut icon' :type - Override the auto-generated mime type, defaults to 'image/vnd.microsoft.icon' Examples favicon_link_tag 'myicon.ico' # => <link

window_cget_strict

window_cget_strict(tagOrId, option) Instance Public methods

translate

translate(filename, sub = false) Instance Public methods