eval_cmd

eval_cmd(p1, *args) Class Public methods

eval_A

eval_A(i,j) Instance Public methods The Computer Language Shootout shootout.alioth.debian.org/ Contributed by Sokolov Yura

tagid

tagid(tag) Instance Public methods def #set_spans(*pairs) if pairs[0].kind_of?(Array) # [idx, val], [idx, val], ... args = [] pairs.each{|idx, val| args << tagid(idx) if val.kind_of?(Array) args << val.join(',') else args << val end } tk_send('spans', *args) else # idx, val, idx, val, ... args = [] 0.step(pairs.size-1, 2){|i| args << tagid(pairs[i]) val = pairs[i+1] if val.kind_of?(Array) args <

select

select(*args, &block) Instance Public methods

collection_radio_buttons

collection_radio_buttons(method, collection, value_method, text_method, options = {}, html_options = {}, &block) Instance Public methods Wraps ActionView::Helpers::FormOptionsHelper#collection_radio_buttons for form builders: <%= form_for @post do |f| %> <%= f.collection_radio_buttons :author_id, Author.all, :id, :name_with_initial %> <%= f.submit %> <% end %> Please refer to the documentation of the base helper for details.

to_s

name_error.to_s â string Instance Public methods Produce a nicely-formatted string representing the NameError.

validate

validate(*args, &block) Instance Public methods Adds a validation method or block to the class. This is useful when overriding the validate instance method becomes too unwieldy and you're looking for more descriptive declaration of your validations. This can be done with a symbol pointing to a method: class Comment include ActiveModel::Validations validate :must_be_friends def must_be_friends errors.add(:base, 'Must be friends to leave a comment') unless commenter.f

send_mail

send_mail() Instance Public methods

tagid

tagid(tagOrId) Instance Public methods

verify_result

ssl.verify_result => Integer Instance Public methods Returns the result of the peer certificates verification. See verify(1) for error values and descriptions. If no peer certificate was presented X509_V_OK is returned.