select_to

select_to(tagOrId, index) Instance Public methods

concat

concat(string) Instance Public methods The preferred method of outputting text in your views is to use the <%= âtextâ %> eRuby syntax. The regular puts and print methods do not operate as expected in an eRuby code block. If you absolutely must output text within a non-output code block (i.e., <% %>), you can use the concat method. <% concat "hello" # is the equivalent of <%= "hello" %> if logged_in concat "Logged in!" else concat li

prepare_controller_class

prepare_controller_class(new_class) Instance Public methods

rakefile

rakefile(filename, data=nil, &block) Instance Public methods Create a new Rakefile with the provided code (either in a block or a string). rakefile("bootstrap.rake") do project = ask("What is the UNIX name of your project?") <<-TASK namespace :#{project} do task :bootstrap do puts "I like boots!" end end TASK end rakefile('seed.rake', 'puts "Planting seeds"')

hasChildNodes

hasChildNodes() Instance Public methods BOOL hasChildNodes

get_all_gem_names

get_all_gem_names() Instance Public methods Get all gem names from the command line.

paste

paste() Instance Public methods

add_listener

add_listener( listener ) Instance Public methods

divide

divide(&func) Instance Public methods Divides the set into a set of subsets according to the commonality defined by the given block. If the arity of the block is 2, elements o1 and o2 are in common if block.call(o1, o2) is true. Otherwise, elements o1 and o2 are in common if block.call(o1) == block.call(o2). e.g.: require 'set' numbers = Set[1, 3, 4, 6, 9, 10, 11] set = numbers.divide { |i,j| (i - j).abs == 1 } p set # => #<Set: {#<Set: {1}>, #

from_hash

from_hash(object) Class Public methods